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();
|
setStyle();
|
||||||
|
|
||||||
unbind();
|
unbind();
|
||||||
#if defined(SG_MAC)
|
#if !defined(SG_MAC)
|
||||||
if (reload) {
|
|
||||||
_menubar.reset(new FGCocoaMenuBar);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
_menubar.reset(new FGPUIMenuBar);
|
_menubar.reset(new FGPUIMenuBar);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue