]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/gui.cxx
Viewer update from Jim Wilson:
[flightgear.git] / src / GUI / gui.cxx
index 850423e32b90f1de1869809f2d8c4b3ecf39283d..4c8e4b7cc81fec29a4231c3fa0d383ec3d64562a 100644 (file)
@@ -167,7 +167,7 @@ void guiErrorMessage (const char *txt, const sg_throwable &throwable)
     string msg = txt;
     msg += '\n';
     msg += throwable.getFormattedMessage();
-    if (throwable.getOrigin() != (string)"") {
+    if (!throwable.getOrigin().empty()) {
       msg += "\n (reported by ";
       msg += throwable.getOrigin();
       msg += ')';
@@ -1034,6 +1034,7 @@ void guiInit()
     // Set up our Dialog Boxes
     ConfirmExitDialogInit();
     NewAirportInit();
+       
 #ifdef FG_NETWORK_OLK
     NewNetIdInit();
     NewNetFGDInit();
@@ -1059,7 +1060,7 @@ void guiInit()
     // Set up menu bar toggle
     gui_menu_on = ~0;
 
-    if (fgGetString("/sim/flight-model") == "ada") {
+    if (!strcmp("/sim/flight-model", "ada")) {
         guiToggleMenu(); // Menu off by default
     }
 }