From 37f55a381e2f07f9a0b2141f3058ad1174eef58b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 24 Dec 2023 16:07:25 +1000 Subject: [PATCH] Select cancel button by default Consistent with 'keep editing' in add screen --- qt/aqt/clayout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index c823e3c36..7204c2528 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -911,7 +911,7 @@ class CardLayout(QDialog): QMessageBox.StandardButton.Discard, QMessageBox.StandardButton.Cancel, ], - default_button=0, + default_button=2, parent=self, ) else: