From eb539d59e7d26369ad2cbb9b3780cfdbc78a8a37 Mon Sep 17 00:00:00 2001 From: Julian Harnath Date: Fri, 22 Nov 2013 11:34:55 +0100 Subject: [PATCH] Don't try to open another menu window if there already is one. * Fixes crash when using Gobe Productive toolbar. --- src/kits/interface/Menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index e9a68e2cf2..f3a6c5ce6b 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -1499,6 +1499,9 @@ BMenu::_InitData(BMessage* archive) bool BMenu::_Show(bool selectFirstItem, bool keyDown) { + if (Window() != NULL) + return false; + // See if the supermenu has a cached menuwindow, // and use that one if possible. BMenuWindow* window = NULL;