Mac compil fix, sorry Bennett.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31481 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-09-28 19:19:02 +00:00
parent 5695850a49
commit ab8e0596a9

View File

@ -800,7 +800,7 @@ docstring GuiApplication::iconName(FuncRequest const & f, bool unknown)
} }
LyXView * GuiApplication::currentWindow() LyXView * GuiApplication::currentWindow()
{ {
#ifdef Q_WS_MACX #ifdef Q_WS_MACX
/* In LyX/Mac, when a dialog is open, the menus of the /* 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 the main window. In this case, we want to disable the menu
entries that are buffer or view-related. entries that are buffer or view-related.
*/ */
if (current_view_ && current_view_->activeWindow() != this) if (current_view_ && activeWindow() != current_view_)
return 0; return 0;
#endif #endif
return current_view_; return current_view_;