mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Consider filtering when selecting from categorized combo (#8452)
This commit is contained in:
parent
661d027a11
commit
625e25264b
@ -557,7 +557,8 @@ void CategorizedCombo::addItemSort(QString const & item, QString const & guiname
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user