Consider filtering when selecting from categorized combo (#8452)

This commit is contained in:
Juergen Spitzmueller 2012-12-10 12:52:23 +01:00
parent 661d027a11
commit 625e25264b

View File

@ -557,7 +557,8 @@ void CategorizedCombo::addItemSort(QString const & item, QString const & guiname
QString CategorizedCombo::getData(int row) const QString CategorizedCombo::getData(int row) const
{ {
return d->model_->data(d->model_->index(row, 1), Qt::DisplayRole).toString(); int srow = d->filterModel_->mapToSource(d->filterModel_->index(row, 1)).row();
return d->model_->data(d->model_->index(srow, 1), Qt::DisplayRole).toString();
} }