RefactoringRope/Refactoring.py

branch
server_client_variant
changeset 183
bac69c80d5f4
parent 182
f7f2834dc8d9
child 184
4a806271f0b9
diff -r f7f2834dc8d9 -r bac69c80d5f4 RefactoringRope/Refactoring.py
--- a/RefactoringRope/Refactoring.py	Sat Sep 23 14:17:49 2017 +0200
+++ b/RefactoringRope/Refactoring.py	Sat Sep 23 15:20:09 2017 +0200
@@ -1323,16 +1323,20 @@
     ## Various refactorings
     #####################################################
     
-    # TODO: continue from here
     def __restructure(self):
         """
         Private slot to restructure code.
         """
         from RestructureDialog import RestructureDialog
         title = self.tr("Restructure")
-        self.dlg = RestructureDialog(self, title, parent=self.__ui)
-        self.dlg.show()
+        dlg = RestructureDialog(self, title, parent=self.__ui)
+        changeGroup = dlg.getChangeGroupName()
+        self.__refactoringDialogs[changeGroup] = dlg
+        dlg.finished.connect(
+            lambda: self.__refactoringDialogClosed(changeGroup))
+        dlg.show()
     
+    # TODO: continue from here
     def __changeSignature(self):
         """
         Private slot to change the signature of a method or function.

eric ide

mercurial