Don't try to open another menu window if there already is one.

* Fixes crash when using Gobe Productive toolbar.
This commit is contained in:
Julian Harnath
2013-11-22 11:38:30 +01:00
parent c70a1cf836
commit eb539d59e7
+3
View File
@@ -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;