From 7405acd42dddb4018ef728411e13eaec1745751b Mon Sep 17 00:00:00 2001 From: dad Date: Mon, 4 Sep 2023 13:25:32 -0600 Subject: [PATCH] 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. --- src/gui/Src/BasicView/ReferenceView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/Src/BasicView/ReferenceView.cpp b/src/gui/Src/BasicView/ReferenceView.cpp index b06d11ba..ae8c4df3 100644 --- a/src/gui/Src/BasicView/ReferenceView.cpp +++ b/src/gui/Src/BasicView/ReferenceView.cpp @@ -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)