Fix inserting new items into sorted wxListBox under wxQt
This commit is contained in:
parent
5803cdefd1
commit
15937ccb3d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue