]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/dialog.cxx
Oliver Schroeder:
[flightgear.git] / src / GUI / dialog.cxx
index 722fab29f78a7fee4c8e05e5a84d0c58a1b2cf81..7d1475bb9d7cbd11b4e94dd51ddc96d66c54e72a 100644 (file)
@@ -406,6 +406,9 @@ FGDialog::display (SGPropertyNode * props)
 puObject *
 FGDialog::makeObject (SGPropertyNode * props, int parentWidth, int parentHeight)
 {
+    if (props->getBoolValue("hide"))
+        return 0;
+
     bool presetSize = props->hasValue("width") && props->hasValue("height");
     int width = props->getIntValue("width", parentWidth);
     int height = props->getIntValue("height", parentHeight);