diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/VcsPlugins/vcsSubversion/SvnCommitDialog.py --- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnCommitDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnCommitDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -33,7 +33,7 @@ @param parent parent widget (QWidget) """ super(SvnCommitDialog, self).__init__( - parent, Qt.WindowFlags(Qt.Window)) + parent, Qt.WindowFlags(Qt.WindowType.Window)) self.setupUi(self) if vcs.version < (1, 5, 0): @@ -53,7 +53,7 @@ self.recentComboBox.addItem("") self.recentComboBox.addItems(self.recentCommitMessages) - self.logEdit.setFocus(Qt.OtherFocusReason) + self.logEdit.setFocus(Qt.FocusReason.OtherFocusReason) def logMessage(self): """ @@ -103,7 +103,9 @@ @param button button that was clicked (QAbstractButton) """ - if button == self.buttonBox.button(QDialogButtonBox.Cancel): + if button == self.buttonBox.button( + QDialogButtonBox.StandardButton.Cancel + ): self.logEdit.clear() def on_buttonBox_accepted(self):