28 |
28 |
29 @param source name of the source file/directory (string) |
29 @param source name of the source file/directory (string) |
30 @param parent parent widget (QWidget) |
30 @param parent parent widget (QWidget) |
31 @param move flag indicating a move operation (boolean) |
31 @param move flag indicating a move operation (boolean) |
32 """ |
32 """ |
33 super(HgCopyDialog, self).__init__(parent) |
33 super().__init__(parent) |
34 self.setupUi(self) |
34 self.setupUi(self) |
35 |
35 |
36 self.source = source |
36 self.source = source |
37 if os.path.isdir(self.source): |
37 if os.path.isdir(self.source): |
38 self.targetPicker.setMode(E5PathPickerModes.DirectoryMode) |
38 self.targetPicker.setMode(E5PathPickerModes.DirectoryMode) |