From 5c33277d9acd1a4166948dcce43f162265aee79f Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 20 May 2019 10:46:47 +0200 Subject: [PATCH] Correctly reset the script list on machine change Fixes #5747 --- plugins/PostProcessingPlugin/PostProcessingPlugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.py b/plugins/PostProcessingPlugin/PostProcessingPlugin.py index 123733b863..376ab291c4 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.py +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.py @@ -219,6 +219,7 @@ class PostProcessingPlugin(QObject, Extension): self._script_list.clear() if not new_stack.getMetaDataEntry("post_processing_scripts"): # Missing or empty. self.scriptListChanged.emit() # Even emit this if it didn't change. We want it to write the empty list to the stack's metadata. + self.setSelectedScriptIndex(-1) return self._script_list.clear()