]> git.lyx.org Git - lyx.git/commitdiff
#9574 check for valid focus (see ticket #1720) does not work on Linux and Windows
authorStephan Witt <switt@lyx.org>
Thu, 28 May 2015 11:27:53 +0000 (13:27 +0200)
committerStephan Witt <switt@lyx.org>
Thu, 28 May 2015 11:27:59 +0000 (13:27 +0200)
src/frontends/qt4/GuiView.cpp

index 527532171c702c14cd0c819d642ea17b3af443bb..01d9b958d6b5b601a08b1192525b68326e9929b7 100644 (file)
@@ -1742,6 +1742,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
        Buffer * doc_buffer = documentBufferView()
                ? &(documentBufferView()->buffer()) : 0;
 
+#ifdef Q_OS_MAC
        /* In LyX/Mac, when a dialog is open, the menus of the
           application can still be accessed without giving focus to
           the main window. In this case, we want to disable the menu
@@ -1751,6 +1752,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
                buf = 0;
                doc_buffer = 0;
        }
+#endif
 
        // Check whether we need a buffer
        if (!lyxaction.funcHasFlag(cmd.action(), LyXAction::NoBuffer) && !buf) {