From fbcfbd9355c2f0b175e4548b093ac780c85034eb Mon Sep 17 00:00:00 2001 From: david Date: Tue, 21 Jan 2003 02:08:41 +0000 Subject: [PATCH] Removed need to specify 'type' property at the top level; it's always a dialog. --- src/GUI/dialog.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;