From d33cec8ec38d58743e346e476b491a84e46c48c8 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 6 Sep 2020 11:28:26 +0100 Subject: [PATCH] Clear current project filename on engine stop Fixes #1243 Signed-off-by: falkTX --- source/frontend/carla_host.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index b6dc10a14..673c7725f 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -968,9 +968,12 @@ class HostWindow(QMainWindow): if self.fCustomStopAction == self.CUSTOM_ACTION_PROJECT_LOAD: self.removeAllPlugins() - elif self.fPluginCount != 0: - self.fCurrentlyRemovingAllPlugins = True - self.projectLoadingStarted() + else: + self.fProjectFilename = "" + self.setProperWindowTitle() + if self.fPluginCount != 0: + self.fCurrentlyRemovingAllPlugins = True + self.projectLoadingStarted() if self.host.is_engine_running() and not self.host.remove_all_plugins(): self.ui.text_logs.appendPlainText("Failed to remove all plugins, error was:")