From 5ccae24f811f34ce66846b45c312155986b6acc1 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 17 Mar 2021 11:44:41 +0000 Subject: [PATCH] Error-reported: disable in no-gui mode --- src/Main/ErrorReporter.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Main/ErrorReporter.cxx b/src/Main/ErrorReporter.cxx index 5d19f5a53..af594dd32 100644 --- a/src/Main/ErrorReporter.cxx +++ b/src/Main/ErrorReporter.cxx @@ -34,6 +34,7 @@ #include #include +#include #include #include
#include
@@ -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) {