--- a/eric6/Plugins/VcsPlugins/vcsGit/GitCommitDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitCommitDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -34,7 +34,7 @@ @param parent parent widget (QWidget) """ super(GitCommitDialog, self).__init__( - parent, Qt.WindowFlags(Qt.Window)) + parent, Qt.WindowFlags(Qt.WindowType.Window)) self.setupUi(self) self.__vcs = vcs @@ -58,7 +58,7 @@ abbrMsg += "..." self.recentComboBox.addItem(abbrMsg, message) - self.logEdit.setFocus(Qt.OtherFocusReason) + self.logEdit.setFocus(Qt.FocusReason.OtherFocusReason) def logMessage(self): """ @@ -109,7 +109,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):