From ca0025145443be705133d6c9fbb55943ae74acbb Mon Sep 17 00:00:00 2001 From: Liam Treacy Date: Thu, 24 Jan 2019 14:35:47 +0000 Subject: [PATCH] Fix in wxListCtrl::FindItem. Every item is now iterated through, rather than only the first --- src/qt/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/listctrl.cpp b/src/qt/listctrl.cpp index 556021c003..58be4de5ed 100644 --- a/src/qt/listctrl.cpp +++ b/src/qt/listctrl.cpp @@ -762,7 +762,7 @@ long wxListCtrl::FindItem(long start, const wxString& str, bool partial) !partial ? Qt::MatchExactly : Qt::MatchContains ); for (int i=0; iindexOfTopLevelItem(qitems.at(0)); + ret = m_qtTreeWidget->indexOfTopLevelItem(qitems.at(i)); if ( ret >= start ) return ret; }