--- 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.