]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/new_gui.cxx
Oliver Schroeder:
[flightgear.git] / src / GUI / new_gui.cxx
index df81cb1fd13b651e685dde4dec6d59c8ee89614a..f45b17ba761e5c3ec3a2618336ba6b4b26ed119c 100644 (file)
@@ -142,6 +142,16 @@ NewGUI::closeDialog (const string& name)
     return false; // dialog wasn't open...
 }
 
+SGPropertyNode_ptr
+NewGUI::getDialog (const string &name)
+{
+    if(_dialog_props.find(name) != _dialog_props.end())
+        return _dialog_props[name];
+
+    SG_LOG(SG_GENERAL, SG_ALERT, "dialog '" << name << "' missing");
+    return 0;
+}
+
 void
 NewGUI::setActiveDialog (FGDialog * dialog)
 {