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; }