Fix in wxListCtrl::FindItem. Every item is now iterated through, rather than only the first
This commit is contained in:
@@ -762,7 +762,7 @@ long wxListCtrl::FindItem(long start, const wxString& str, bool partial)
|
||||
!partial ? Qt::MatchExactly : Qt::MatchContains );
|
||||
for (int i=0; i<qitems.length(); i++)
|
||||
{
|
||||
ret = m_qtTreeWidget->indexOfTopLevelItem(qitems.at(0));
|
||||
ret = m_qtTreeWidget->indexOfTopLevelItem(qitems.at(i));
|
||||
if ( ret >= start )
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user