stop tracking if we don't have a owner anymore, should help with bug #573

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22559 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-10-14 21:44:10 +00:00
parent 3ad1de3b5a
commit 20674e3150
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu)
while (true) {
bigtime_t snoozeAmount = 40000;
bool locked = window->Lock();//WithTimeout(200000)
bool locked = (Window() != NULL && window->Lock());//WithTimeout(200000)
if (!locked)
break;