aboutsummaryrefslogtreecommitdiff
path: root/src/gui/presetmanager.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/presetmanager.py')
-rw-r--r--src/gui/presetmanager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/presetmanager.py b/src/gui/presetmanager.py
index 1cc0887..79ec539 100644
--- a/src/gui/presetmanager.py
+++ b/src/gui/presetmanager.py
@@ -8,6 +8,7 @@ import os
from toolkit import badName
from core import Core
+from gui.actions import *
class PresetManager(QtWidgets.QDialog):
@@ -130,8 +131,8 @@ class PresetManager(QtWidgets.QDialog):
def clearPreset(self, compI=None):
'''Functions on mainwindow level from the context menu'''
compI = self.parent.window.listWidget_componentList.currentRow()
- self.core.clearPreset(compI)
- self.parent.updateComponentTitle(compI, False)
+ action = ClearPreset(self.parent, compI)
+ self.parent.undoStack.push(action)
def openSavePresetDialog(self):
'''Functions on mainwindow level from the context menu'''