mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-29 02:40:33 -07:00
FIX: on mac, the mouse event may triggered even disabled
jira: [STUDIO-11526] Change-Id: Id68f43e1b6d1401c72966f97643d6631f23b87a9 (cherry picked from commit b2b4eabbfb7cb60cb1cb1b5e4fc624e52e956e22)
This commit is contained in:
parent
72bed99085
commit
2b2d3cfd02
1 changed files with 2 additions and 0 deletions
|
|
@ -278,6 +278,8 @@ void ComboBox::DoSetItemClientData(unsigned int n, void *data)
|
|||
|
||||
void ComboBox::mouseDown(wxMouseEvent &event)
|
||||
{
|
||||
if (!IsEnabled()) { return; } /*on mac, the event may triggered even disabled*/
|
||||
|
||||
SetFocus();
|
||||
if (drop_down) {
|
||||
drop.Hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue