Avoid crash when reloading GUI from debug menu.
This commit is contained in:
parent
ebfdebeb43
commit
9e344ee645
1 changed files with 1 additions and 5 deletions
|
@ -100,11 +100,7 @@ NewGUI::reset (bool reload)
|
|||
setStyle();
|
||||
|
||||
unbind();
|
||||
#if defined(SG_MAC)
|
||||
if (reload) {
|
||||
_menubar.reset(new FGCocoaMenuBar);
|
||||
}
|
||||
#else
|
||||
#if !defined(SG_MAC)
|
||||
_menubar.reset(new FGPUIMenuBar);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue