]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/menubar.cxx
Merge branch 'jmt/gps' into next
[flightgear.git] / src / GUI / menubar.cxx
index d34f0fe3a9c1eadf3eb86a57b1fd24a6839c5694..89246a5ede79a1a6c68478c7af8aa4748a6be86e 100644 (file)
@@ -356,7 +356,7 @@ FGMenuBar::add_enabled_listener(SGPropertyNode * node)
 bool
 FGMenuBar::enable_item(const SGPropertyNode * node, bool state)
 {
-    const char *path = node->getPath();
+    string path = node->getPath();
     if (_objects.find(path) == _objects.end()) {
         SG_LOG(SG_GENERAL, SG_ALERT, "Trying to enable/disable "
             "non-existent menu item for node `" << path << '\'');