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();
|
string type = props->getName();
|
||||||
if (type == "")
|
if (type == "")
|
||||||
type = props->getStringValue("type");
|
type = "dialog";
|
||||||
if (type == "") {
|
|
||||||
SG_LOG(SG_GENERAL, SG_ALERT, "No type specified for GUI object");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (type == "dialog") {
|
if (type == "dialog") {
|
||||||
puPopup * dialog;
|
puPopup * dialog;
|
||||||
|
|
Loading…
Add table
Reference in a new issue