mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
GuiApplication::resetGui(): Recreate Mac nenubar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26306 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1c64fe44e8
commit
0595b725f7
@ -895,12 +895,16 @@ void GuiApplication::resetGui()
|
|||||||
// Gives some error box here.
|
// Gives some error box here.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef Q_WS_MACX
|
||||||
|
delete d->global_menubar_;
|
||||||
|
// Create the global default menubar which is shown for the dialogs
|
||||||
|
// and if no GuiView is visible.
|
||||||
|
d->global_menubar_ = new GlobalMenuBar();
|
||||||
|
|
||||||
// init the global menubar on Mac. This must be done after the session
|
// init the global menubar on Mac. This must be done after the session
|
||||||
// was recovered to know the "last files".
|
// was recovered to know the "last files".
|
||||||
if (d->global_menubar_) {
|
d->menus_.fillMenuBar(d->global_menubar_, 0, true);
|
||||||
d->global_menubar_->clear();
|
#endif
|
||||||
d->menus_.fillMenuBar(d->global_menubar_, 0, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
QHash<int, GuiView *>::iterator it;
|
QHash<int, GuiView *>::iterator it;
|
||||||
for (it = d->views_.begin(); it != d->views_.end(); ++it) {
|
for (it = d->views_.begin(); it != d->views_.end(); ++it) {
|
||||||
|
Loading…
Reference in New Issue
Block a user