KMessageBox::Dangerous considered harmful ;)

David Faure faure at kde.org
Sun Apr 6 22:57:20 BST 2008


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 at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list