fixed menubars behaviour, and also crashing bug

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-02-03 21:20:46 +00:00
parent a343f33cf7
commit fbca7b0cfd
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu)
window->Unlock();
if (localAction == MENU_ACT_CLOSE)
if (localAction == MENU_ACT_CLOSE || buttons == 0)
break;
if (snoozeAmount > 0)