mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
aaaf6acb2d
commit
e1c713faf0
@ -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_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user