diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 2996bfd5..64b32bad 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -618,7 +618,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) { | |||
618 | } | 618 | } |
619 | /* Menu closes when commands are emitted, so handle any pending ones beforehand. */ | 619 | /* Menu closes when commands are emitted, so handle any pending ones beforehand. */ |
620 | processEvents_App(postedEventsOnly_AppEventMode); | 620 | processEvents_App(postedEventsOnly_AppEventMode); |
621 | setFlags_Widget(d, hidden_WidgetFlag | disabled_WidgetFlag, iFalse); | 621 | setFlags_Widget(d, hidden_WidgetFlag, iFalse); |
622 | setFlags_Widget(d, commandOnMouseMiss_WidgetFlag, iTrue); | 622 | setFlags_Widget(d, commandOnMouseMiss_WidgetFlag, iTrue); |
623 | raise_Widget(d); | 623 | raise_Widget(d); |
624 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iFalse); | 624 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iFalse); |
@@ -700,7 +700,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 coord, iBool postCommands) { | |||
700 | } | 700 | } |
701 | 701 | ||
702 | void closeMenu_Widget(iWidget *d) { | 702 | void closeMenu_Widget(iWidget *d) { |
703 | setFlags_Widget(d, hidden_WidgetFlag | disabled_WidgetFlag, iTrue); | 703 | setFlags_Widget(d, hidden_WidgetFlag, iTrue); |
704 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iTrue); | 704 | setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iTrue); |
705 | postRefresh_App(); | 705 | postRefresh_App(); |
706 | postCommand_Widget(d, "menu.closed"); | 706 | postCommand_Widget(d, "menu.closed"); |