From: James Turner Date: Sun, 20 Nov 2011 16:33:22 +0000 (+0000) Subject: Avoid crash when reloading GUI from debug menu. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e344ee64594e4932e11227a95e6efcafad1cd86;p=flightgear.git Avoid crash when reloading GUI from debug menu. --- diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index ef50d7731..c13456068 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -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