more fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17043 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bf5d7973b9
commit
9c5c552dd6
@ -1199,23 +1199,19 @@ BMenu::_track(int *action, long start)
|
||||
|
||||
snooze(snoozeAmount);
|
||||
|
||||
if (localAction == MENU_ACT_CLOSE || (buttons != 0 && IsStickyMode()))
|
||||
if (buttons != 0 && IsStickyMode()) {
|
||||
localAction = MENU_ACT_CLOSE;
|
||||
break;
|
||||
else if (buttons == 0) {
|
||||
} else if (buttons == 0) {
|
||||
if (IsStickyPrefOn())
|
||||
SetStickyMode(true);
|
||||
else
|
||||
else {
|
||||
localAction = MENU_ACT_CLOSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (localAction == MENU_ACT_NONE && okay) {
|
||||
if (buttons != 0)
|
||||
localAction = MENU_ACT_NONE;
|
||||
else
|
||||
localAction = MENU_ACT_CLOSE;
|
||||
}
|
||||
|
||||
if (action != NULL)
|
||||
*action = localAction;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user