diff options
| author | tassaron | 2017-08-14 18:41:45 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-14 18:41:45 -0400 |
| commit | 733c005eeaf5d3ff15e0f60d320f5c03472bad60 (patch) | |
| tree | 32176c185ca09a8f35d195fac257ca31313b84bb /src/gui/presetmanager.py | |
| parent | a327bec4e42cc572fb84e559025e888a4a20edd3 (diff) | |
undoable removeComponent action
Diffstat (limited to 'src/gui/presetmanager.py')
| -rw-r--r-- | src/gui/presetmanager.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/presetmanager.py b/src/gui/presetmanager.py index b1eeb34..1cc0887 100644 --- a/src/gui/presetmanager.py +++ b/src/gui/presetmanager.py @@ -302,7 +302,7 @@ class PresetManager(QtWidgets.QDialog): self.findPresets() self.drawPresetList() for i, comp in enumerate(self.core.selectedComponents): - if getPresetDir(comp) == path \ + if self.core.getPresetDir(comp) == path \ and comp.currentPreset == oldName: self.core.openPreset(newPath, i, newName) self.parent.updateComponentTitle(i, False) @@ -351,8 +351,3 @@ class PresetManager(QtWidgets.QDialog): def clearPresetListSelection(self): self.window.listWidget_presets.setCurrentRow(-1) - - -def getPresetDir(comp): - '''Get the preset subdir for a particular version of a component''' - return os.path.join(Core.presetDir, str(comp), str(comp.version)) |
