--- a/RefactoringRope/MoveDialog.py Sat Mar 27 09:48:05 2021 +0100 +++ b/RefactoringRope/MoveDialog.py Sat Apr 24 11:19:08 2021 +0200 @@ -174,18 +174,19 @@ dest = self.__project.getProjectPath() elif not os.path.isabs(dest): dest = os.path.join(self.__project.getProjectPath(), dest) - if self.__moveType == "move_global_method": - destination = E5FileDialog.getOpenFileName( + destination = ( + E5FileDialog.getOpenFileName( self, self.windowTitle(), dest, self.tr("Python Files (*.py *.py3);;All Files (*)")) - else: + if self.__moveType == "move_global_method" else # move_module - destination = E5FileDialog.getExistingDirectory( + E5FileDialog.getExistingDirectory( self, self.windowTitle(), dest) + ) if destination: destination = Utilities.toNativeSeparators(destination)