summaryrefslogtreecommitdiff
path: root/src/editorui/paths.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/editorui/paths.py')
-rw-r--r--src/editorui/paths.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/editorui/paths.py b/src/editorui/paths.py
index a0e65d6..43a1465 100644
--- a/src/editorui/paths.py
+++ b/src/editorui/paths.py
@@ -593,10 +593,15 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
# modify the unlock settings
from unlock import KPUnlockSpecDialog
- # todo: set the existing thing there
- result = KPUnlockSpecDialog.exec_()
+ dlg = KPUnlockSpecDialog('path', 'unlocked')
+
+ if hasattr(self._pathRef(), 'unlockSpec'):
+ dlg.setSpec(self._pathRef().unlockSpec)
+
+ result = dlg.exec_()
if result == QtGui.QDialog.Accepted:
- print "OK!"
+ print "New spec:", dlg.spec
+ self._pathRef().unlockSpec = dlg.spec
def updatePosition(self):