Set focus to No button initially, so enter = revert changes.

I'm not completely sure about this, but it could help to prevent accidential confirms

svn path=/trunk/KDE/kdebase/workspace/; revision=714128
This commit is contained in:
Rivo Laks 2007-09-18 19:51:54 +00:00
parent 5feeb3f483
commit 36d804a0f5

View file

@ -43,6 +43,7 @@ ConfirmDialog::ConfirmDialog() :
setCaption( i18n( "Compositing settings changed" ));
setButtons( KDialog::Yes | KDialog::No | KDialog::Cancel );
setDefaultButton(KDialog::No);
setButtonFocus(KDialog::No);
setEscapeButton(KDialog::Cancel);
mTextLabel = new QLabel(this);