summaryrefslogtreecommitdiff
path: root/src/gui/gui_menu.pas
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui_menu.pas')
-rw-r--r--src/gui/gui_menu.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui_menu.pas b/src/gui/gui_menu.pas
index 7d665e93..bd6f10a2 100644
--- a/src/gui/gui_menu.pas
+++ b/src/gui/gui_menu.pas
@@ -418,6 +418,9 @@ var
newf: integer;
begin
inherited HandleLMouseDown(x, y, shiftstate);
+
+ if ComponentCount = 0 then
+ Exit; // We have no menu items in MainMenu.
if not Focused then
ActivateMenu;