From f04f902b665bca26e710bf4b68337f35a3c0d4fb Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Tue, 8 Sep 2020 22:51:21 +0100 Subject: [PATCH] src/GUI/MessageBox.cxx:modalMessageBox(): If no gui, use SG_POPUP to ensure message is printed to terminal. --- src/GUI/MessageBox.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/MessageBox.cxx b/src/GUI/MessageBox.cxx index 882e2da75..7a21bb246 100644 --- a/src/GUI/MessageBox.cxx +++ b/src/GUI/MessageBox.cxx @@ -160,7 +160,7 @@ MessageBoxResult modalMessageBox(const std::string& caption, NewGUI* gui = globals->get_subsystem(); 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 );