src/GUI/MessageBox.cxx:modalMessageBox(): If no gui, use SG_POPUP to ensure message is printed to terminal.
This commit is contained in:
parent
801ec1f7a6
commit
f04f902b66
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ MessageBoxResult modalMessageBox(const std::string& caption,
|
||||||
|
|
||||||
NewGUI* gui = globals->get_subsystem<NewGUI>();
|
NewGUI* gui = globals->get_subsystem<NewGUI>();
|
||||||
if (!gui || (fgGetBool("/sim/rendering/initialized", false) == false)) {
|
if (!gui || (fgGetBool("/sim/rendering/initialized", false) == false)) {
|
||||||
SG_LOG(SG_GENERAL, SG_ALERT, s);
|
SG_LOG(SG_GENERAL, SG_POPUP, s);
|
||||||
} else {
|
} else {
|
||||||
SGPropertyNode_ptr dlg = gui->getDialogProperties("popup");
|
SGPropertyNode_ptr dlg = gui->getDialogProperties("popup");
|
||||||
dlg->setStringValue("text/label", s );
|
dlg->setStringValue("text/label", s );
|
||||||
|
|
Loading…
Reference in a new issue