From: david Date: Tue, 21 Jan 2003 02:08:41 +0000 (+0000) Subject: Removed need to specify 'type' property at the top level; it's always X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbcfbd9355c2f0b175e4548b093ac780c85034eb;p=flightgear.git Removed need to specify 'type' property at the top level; it's always a dialog. --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index d19fb4375..3ad41ca97 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -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;