diff options
| author | tassaron | 2017-08-17 10:42:15 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-17 10:42:15 -0400 |
| commit | c06ca5cdcb603f1855cb0122fc2ab6d2473f3c24 (patch) | |
| tree | 383cabd30bc1dcfc95839b31818b5878eb676e35 /src/gui/presetmanager.py | |
| parent | f66ec40ba6e9c4062d1e41894e0a88f713add96d (diff) | |
undoable add-comp & clear-preset actions
Diffstat (limited to 'src/gui/presetmanager.py')
| -rw-r--r-- | src/gui/presetmanager.py | 5 |
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''' |
