62 self.__initPaths = [ |
62 self.__initPaths = [ |
63 Utilities.fromNativeSeparators(ipath), |
63 Utilities.fromNativeSeparators(ipath), |
64 Utilities.fromNativeSeparators(ipath) + "/", |
64 Utilities.fromNativeSeparators(ipath) + "/", |
65 ] |
65 ] |
66 |
66 |
67 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
67 self.buttonBox.button( |
|
68 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
68 |
69 |
69 msh = self.minimumSizeHint() |
70 msh = self.minimumSizeHint() |
70 self.resize(max(self.width(), msh.width()), msh.height()) |
71 self.resize(max(self.width(), msh.width()), msh.height()) |
71 |
72 |
72 @pyqtSlot(str) |
73 @pyqtSlot(str) |
90 # assume scp like repository URL |
91 # assume scp like repository URL |
91 enable = True |
92 enable = True |
92 else: |
93 else: |
93 vcsUrlEnable = True |
94 vcsUrlEnable = True |
94 |
95 |
95 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
96 self.buttonBox.button( |
|
97 QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
96 self.submoduleUrlButton.setEnabled(vcsUrlEnable) |
98 self.submoduleUrlButton.setEnabled(vcsUrlEnable) |
97 |
99 |
98 @pyqtSlot() |
100 @pyqtSlot() |
99 def on_submoduleUrlButton_clicked(self): |
101 def on_submoduleUrlButton_clicked(self): |
100 """ |
102 """ |