]> git.mxchange.org Git - flightgear.git/commitdiff
Removed need to specify 'type' property at the top level; it's always
authordavid <david>
Tue, 21 Jan 2003 02:08:41 +0000 (02:08 +0000)
committerdavid <david>
Tue, 21 Jan 2003 02:08:41 +0000 (02:08 +0000)
a dialog.

src/GUI/dialog.cxx

index d19fb43754705a6b7f4d47225d8bdaa159087c69..3ad41ca97f6480e924c379ae34dff249c60bd1df 100644 (file)
@@ -218,11 +218,7 @@ FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight)
 
     string type = props->getName();
     if (type == "")
-        type = props->getStringValue("type");
-    if (type == "") {
-        SG_LOG(SG_GENERAL, SG_ALERT, "No type specified for GUI object");
-        return 0;
-    }
+        type = "dialog";
 
     if (type == "dialog") {
         puPopup * dialog;