mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 22:20:55 +00:00
Don't popup an empty listbox if the combobox is editable and has open-on-click style
This commit is contained in:
parent
a0ea3ae07b
commit
a30f374bd5
@ -436,7 +436,9 @@ bool ComboBoxEntry::onProcessMessage(Message* msg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case kMouseDownMessage:
|
case kMouseDownMessage:
|
||||||
if (m_comboBox->isClickOpen()) {
|
if (m_comboBox->isClickOpen() &&
|
||||||
|
(!m_comboBox->isEditable() ||
|
||||||
|
!m_comboBox->m_items.empty())) {
|
||||||
m_comboBox->switchListBox();
|
m_comboBox->switchListBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user