eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -63,7 +63,8 @@
         self.vcsProjectDirEdit.setText(
             Utilities.toNativeSeparators(self.__initPaths[0]))
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
         
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
@@ -75,7 +76,7 @@
         
         @param txt name of the project directory (string)
         """
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(
+        self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
             bool(txt) and
             Utilities.fromNativeSeparators(txt) not in self.__initPaths)
     
@@ -132,7 +133,8 @@
         else:
             vcsUrlEnable = True
         
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
         self.vcsUrlButton.setEnabled(vcsUrlEnable)
     
     @pyqtSlot()

eric ide

mercurial