1
0
Fork 0

src/GUI/MessageBox.cxx:modalMessageBox(): If no gui, use SG_POPUP to ensure message is printed to terminal.

This commit is contained in:
Julian Smith 2020-09-08 22:51:21 +01:00
parent 801ec1f7a6
commit f04f902b66

View file

@ -160,7 +160,7 @@ MessageBoxResult modalMessageBox(const std::string& caption,
NewGUI* gui = globals->get_subsystem<NewGUI>();
if (!gui || (fgGetBool("/sim/rendering/initialized", false) == false)) {
SG_LOG(SG_GENERAL, SG_ALERT, s);
SG_LOG(SG_GENERAL, SG_POPUP, s);
} else {
SGPropertyNode_ptr dlg = gui->getDialogProperties("popup");
dlg->setStringValue("text/label", s );