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/component.py | |
| parent | a327bec4e42cc572fb84e559025e888a4a20edd3 (diff) | |
undoable removeComponent action
Diffstat (limited to 'src/component.py')
| -rw-r--r-- | src/component.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/component.py b/src/component.py index cf3085c..0e5144c 100644 --- a/src/component.py +++ b/src/component.py @@ -59,9 +59,8 @@ class ComponentMetaclass(type(QtCore.QObject)): '''Intercepts the command() method to check for global args''' def commandWrapper(self, arg): if arg.startswith('preset='): - from presetmanager import getPresetDir _, preset = arg.split('=', 1) - path = os.path.join(getPresetDir(self), preset) + path = os.path.join(self.core.getPresetDir(self), preset) if not os.path.exists(path): print('Couldn\'t locate preset "%s"' % preset) quit(1) |
