1
0
Fork 0

Error-reported: disable in no-gui mode

This commit is contained in:
James Turner 2021-03-17 11:44:41 +00:00
parent ca632cfe4e
commit 5ccae24f81

View file

@ -34,6 +34,7 @@
#include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/structure/commands.hxx>
#include <GUI/MessageBox.hxx>
#include <GUI/new_gui.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
@ -701,6 +702,10 @@ void ErrorReporter::update(double dt)
}
} // end of locked section
if (showDialog && flightgear::isHeadlessMode()) {
showDialog = false;
}
// do not call into another subsystem with our lock held,
// as this can trigger deadlocks
if (showDialog) {