Fixed cycling through filtered references without clearing filter.

Allow "Actions -> Go to Next/Previous Reference" to cycle through a filtered reference list.  Was previously clearing the filter on the first "Next/Previous" action.
This commit is contained in:
dad 2023-09-04 13:25:32 -06:00
parent b28e317073
commit 7405acd42d

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)