1
0
Fork 0

Merge pull request #3206 from HayFieldLaps/referenceview-cycle-filtered

Fixed cycling through filtered references without clearing filter.
This commit is contained in:
Duncan Ogilvie 2023-09-12 10:57:38 +02:00 committed by GitHub
commit 2ce5a283f5
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -187,10 +187,14 @@ void ReferenceView::setRowCount(dsint count)
void ReferenceView::setSingleSelection(int index, bool scroll)
{
clearFilter();
//clearFilter();
stdList()->setSingleSelection(index);
stdSearchList()->setSingleSelection(index);
if(scroll) //TODO: better scrolling
{
stdList()->setTableOffset(index);
stdSearchList()->setTableOffset(index);
}
}
void ReferenceView::addCommand(QString title, QString command)