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
This commit is contained in:
Abdelrazak Younes 2010-02-09 12:42:38 +00:00
parent aaaf6acb2d
commit e1c713faf0

View File

@ -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_;
}