eric6/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8151
8c1445825e7b
diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -64,7 +64,8 @@
         
         self.resize(self.width(), self.minimumSizeHint().height())
         
-        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())
@@ -76,7 +77,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)
         
@@ -88,7 +89,7 @@
         dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self)
         dlg.start(
             self.protocolCombo.currentText() + self.vcsUrlPicker.text())
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             url = dlg.getSelectedUrl()
             if url:
                 protocol = url.split("://")[0]
@@ -137,7 +138,8 @@
         @param txt current text of the line edit (string)
         """
         enable = "://" not in txt
-        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
+        self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
         
     def getData(self):
         """

eric ide

mercurial