mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 06:05:36 +08:00
Fix inserting new items into sorted wxListBox under wxQt
This commit is contained in:
+1
-1
@@ -323,7 +323,7 @@ int wxListBox::DoInsertOneItem(const wxString& text, unsigned int pos)
|
||||
item->setCheckState(Qt::Unchecked);
|
||||
}
|
||||
m_qtListWidget->insertItem(pos, item);
|
||||
return pos;
|
||||
return IsSorted() ? m_qtListWidget->row(item) : pos;
|
||||
}
|
||||
|
||||
void wxListBox::DoSetItemClientData(unsigned int n, void *clientData)
|
||||
|
||||
Reference in New Issue
Block a user