[PATCH] KMessageBox - wrong code returned
Olivier Goffart
ogoffart at bepointbe.be
Thu Nov 8 23:54:28 CET 2007
Le jeudi 8 novembre 2007, Pascal Létourneau a écrit :
> 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?
Ok for me.
>
> 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) {
> _______________________________________________
> Kdelibs-bugs mailing list
> Kdelibs-bugs at kde.org
> https://mail.kde.org/mailman/listinfo/kdelibs-bugs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kdelibs-bugs/attachments/20071108/90725c4e/attachment.pgp
More information about the Kdelibs-bugs
mailing list