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:
@@ -1499,6 +1499,9 @@ BMenu::_InitData(BMessage* archive)
|
|||||||
bool
|
bool
|
||||||
BMenu::_Show(bool selectFirstItem, bool keyDown)
|
BMenu::_Show(bool selectFirstItem, bool keyDown)
|
||||||
{
|
{
|
||||||
|
if (Window() != NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
// See if the supermenu has a cached menuwindow,
|
// See if the supermenu has a cached menuwindow,
|
||||||
// and use that one if possible.
|
// and use that one if possible.
|
||||||
BMenuWindow* window = NULL;
|
BMenuWindow* window = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user