From e1c713faf0263dfdc2ebf6b7e7a31c1ee00cfd6a Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 9 Feb 2010 12:42:38 +0000 Subject: [PATCH] Temporarily fix bug #6412. The side effect is that, in LyX/Mac, when a dialog is open, the menu entries that are buffer or view-related are not going to be disabled. I'll try to solve that last issue later. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33380 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 030668f2e9..3f894e2201 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -826,15 +826,6 @@ docstring GuiApplication::iconName(FuncRequest const & f, bool unknown) LyXView * GuiApplication::currentWindow() { -#ifdef Q_WS_MACX - /* 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 - entries that are buffer or view-related. - */ - if (current_view_ && activeWindow() != current_view_) - return 0; -#endif return current_view_; } -- 2.39.2