From 9b0c5e413c5b1debae26ae6043f037fe3d8257d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 16 Jun 2005 12:34:46 +0000 Subject: [PATCH] fixed a crash into the debugger because the looper was not locked in BMenuBar::Track(), Stefano, please review... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13173 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index 5a8501569b..94e7862ce7 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -443,8 +443,11 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu) window->Unlock(); } - if (resultItem != NULL) + if (resultItem != NULL) { + window->Lock(); resultItem->Invoke(); + window->Unlock(); + } return resultItem; }