From d52fac00567bb85944188f3c946b86b2a420819c Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Fri, 23 Sep 2011 13:11:34 +0000 Subject: improved the "menu bar focus"-fix even more --- muse2/muse/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 1fcfef56..9f858bc3 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -3102,7 +3102,8 @@ void MusE::activeTopWinChangedSlot(TopWin* win) { if (MusEGlobal::debugMsg) printf("ACTIVE TOPWIN CHANGED to '%s' (%p)\n", win ? win->windowTitle().toAscii().data() : "", win); - if (win && (win->isMdiWin()==false) && win->sharesToolsAndMenu()) + if ( (win && (win->isMdiWin()==false) && win->sharesToolsAndMenu()) && + ( (mdiArea->currentSubWindow() != NULL) && (mdiArea->currentSubWindow()->isVisible()==true) ) ) { if (MusEGlobal::debugMsg) printf(" that's a menu sharing muse window which isn't inside the MDI area.\n"); // if a window gets active which a) is a muse window, b) is not a mdi subwin and c) shares menu- and toolbar, -- cgit v1.2.3