Browse Source

Correctly reset the script list on machine change

Fixes #5747
Jaime van Kessel 5 years ago
parent
commit
5c33277d9a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/PostProcessingPlugin/PostProcessingPlugin.py

+ 1 - 0
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()