From kde-core-devel Mon Apr 07 01:34:05 2008 From: "Tomaz Canabrava" Date: Mon, 07 Apr 2008 01:34:05 +0000 To: kde-core-devel Subject: Re: KMessageBox::Dangerous considered harmful ;) Message-Id: <7ebbb4b50804061834m48d34c08h28f2f77daf09961f () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=120757569904131 I Agree with both. If something wrong came up (like deleting a bunch of your pictures from the college time on the pajama-party), you can (or, you should ;) ) undo it by hitting ctrl+z or stuff.. On Sun, Apr 6, 2008 at 6:57 PM, David Faure wrote: > > On Sunday 06 April 2008, Stefan Monov wrote: > > Hi. > > The KMessageBox::Dangerous flag makes a message box set its default button to > > the "safer" one, for example to Cancel rather than Delete. The idea is that > > asking for confirmation is not enough of a protection, so the user should > > also be shielded from pressing Enter accidentally. > > Me, I never pressed Enter accidentally, but I've always appreciated the > > ability to do Shift+Del Enter. i.e. finger2+finger4 finger3. It's easy yet > > safe. > > > > So I put forth my suggestion: let us deprecate KMessageBox::Dangerous and > > rid the main modules of it. > > > > aseigo, you added the feature some years back (commit 232842), so I'd love to > > hear from you especially ;) > > As I wrote in bug 156438: > > " Aaron intended that Cancel is default for dangerous actions (r232842). > " However Waldo reverted that later on, making the "dangerous" flag ignored (r263203); no reason given in the log message, but IIRC the change of habits was too big, too many people were used to hitting Return to confirm message boxes. This is why "Delete" was still the default in KDE3. > " Then the code was ported to KDE4 and the "dangerous" flag was honoured again (I guess without knowing that the KDE3 code didn't honour it). > " So at this point we need a decision on the issue.... > > > I agree with Stefan: having to confirm the confirmation box by clicking on a non-default button is too much. > > > -- > David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, > Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). > -- Um Computador sem Windows é como um Navio sem dançarinas de Can-Can