It's a good idea to snooze AFTER we've checked the possible exit conditions

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-04-21 11:33:02 +00:00
parent 11d7ecebd0
commit 59d1b7be9d

View File

@ -43,6 +43,7 @@ public:
menu_info BMenu::sMenuInfo;
bool BMenu::sAltAsCommandKey;
static property_info
sPropList[] = {
{ "Enabled", { B_GET_PROPERTY, 0 },
@ -1240,9 +1241,7 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
if (locked)
UnlockLooper();
snooze(snoozeAmount);
if (buttons != 0 && IsStickyMode()) {
fState = MENU_ACT_CLOSE;
break;
@ -1255,6 +1254,8 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
break;
}
}
snooze(snoozeAmount);
}
if (action != NULL)