mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-18 11:42:47 +00:00
Fix UI problem navigating FileSelector using autocomplete and keyboard
With this fix, when the list of possible completions for a filename is regenerated, we deselect the previously selected item. So the new list appears without any item selected by default.
This commit is contained in:
parent
c9ed7bf868
commit
847fc58a01
@ -191,6 +191,7 @@ void ComboBox::removeAllItems()
|
|||||||
delete *it;
|
delete *it;
|
||||||
|
|
||||||
m_items.clear();
|
m_items.clear();
|
||||||
|
m_selected = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ComboBox::getItemCount() const
|
int ComboBox::getItemCount() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user