summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-03-08 11:51:17 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-03-09 06:12:05 +0100
commitf2fc2013defc2f346fa1936dcf357d34bae3dbba (patch)
tree5c0d3ca7a6b1064866809e8db76a3c7cd7d3720e /src/widgets/dialogs
parent3f45905953d57e0174059d7d9d6bc75c3c1c406c (diff)
QErrorMessage: Reset 'again' check box between each error message
The choice of whether to show a message again is per message, so when showing a new message we need to reset the check box back to its default checked state, otherwise the user might mistakenly dismiss more than the indented message. [ChangeLog][Widgets] QErrorMessage will now reset the check box for showing a message again for each new message shown, as each individual message has its own suppression state. Pick-to: 6.5 6.5.0 Change-Id: I86d4bb5eabdb5b7a478c03516108a5edf87fcbe3 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r--src/widgets/dialogs/qerrormessage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/dialogs/qerrormessage.cpp b/src/widgets/dialogs/qerrormessage.cpp
index f83d7b153c..374cdb53cc 100644
--- a/src/widgets/dialogs/qerrormessage.cpp
+++ b/src/widgets/dialogs/qerrormessage.cpp
@@ -358,6 +358,7 @@ bool QErrorMessagePrivate::nextPending()
#endif
currentMessage = std::move(message);
currentType = std::move(type);
+ again->setChecked(true);
return true;
}
}