Error-reported: disable in no-gui mode
This commit is contained in:
parent
ca632cfe4e
commit
5ccae24f81
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue