[PATCH] KMessageBox - wrong code returned
Pascal Létourneau
pascal.letourneau at gmail.com
Thu Nov 8 23:15:08 CET 2007
Hi
If one close a warningContinueCancel dialog using the [x] window button, this
is currently interpreted as Continue, not Cancel!
(createKMessageBox() returns QDialog::Rejected in that case)
Ok to commit the included patch?
Pascal Létourneau
Index: kmessagebox.cpp
===================================================================
--- kmessagebox.cpp (revision 734394)
+++ kmessagebox.cpp (working copy)
@@ -617,7 +617,7 @@ int KMessageBox::warningContinueCancelLi
dontAskAgainName.isEmpty() ? QString() : i18n("Do not
ask again"),
&checkboxResult, options);
- if ( result == KDialog::No ) {
+ if ( result != KDialog::Yes ) {
return Cancel;
}
if (checkboxResult) {
More information about the Kdelibs-bugs
mailing list