From b32ca2b0d50d940f68fb1b921259385bdf365489 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 27 Jun 2020 18:02:25 +0100 Subject: [PATCH] Do not ask to quit carla if running under NSM show-gui server Signed-off-by: falkTX --- source/frontend/carla_host.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index 427efce6c..610f7f78c 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -2780,6 +2780,8 @@ class HostWindow(QMainWindow): return False if self.fCustomStopAction == self.CUSTOM_ACTION_APP_CLOSE: return False + if self.fWindowCloseHideGui: + return False if self.fSavedSettings[CARLA_KEY_MAIN_CONFIRM_EXIT]: return QMessageBox.question(self, self.tr("Quit"), self.tr("Are you sure you want to quit Carla?"),