From ab8e0596a98283e253397a3e2b0e93187829c028 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 28 Sep 2009 19:19:02 +0000 Subject: [PATCH] Mac compil fix, sorry Bennett. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31481 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 982d16a7b5..978228f70a 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -800,7 +800,7 @@ docstring GuiApplication::iconName(FuncRequest const & f, bool unknown) } -LyXView * GuiApplication::currentWindow() +LyXView * GuiApplication::currentWindow() { #ifdef Q_WS_MACX /* In LyX/Mac, when a dialog is open, the menus of the @@ -808,7 +808,7 @@ LyXView * GuiApplication::currentWindow() the main window. In this case, we want to disable the menu entries that are buffer or view-related. */ - if (current_view_ && current_view_->activeWindow() != this) + if (current_view_ && activeWindow() != current_view_) return 0; #endif return current_view_;