Removed need to specify 'type' property at the top level; it's always
a dialog.
This commit is contained in:
parent
f61d73e546
commit
fbcfbd9355
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue