From e29b120fd7099191d864b1da012b02161e148ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 11 Jul 2008 12:31:36 +0000 Subject: [PATCH] Focus the cancel button by default, so that one does not activate compositing by mistake. BUG: 164150 svn path=/trunk/KDE/kdebase/workspace/; revision=830906 --- kcmkwin/kwincompositing/ktimerdialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kcmkwin/kwincompositing/ktimerdialog.cpp b/kcmkwin/kwincompositing/ktimerdialog.cpp index 803993039b..d845cb1c61 100644 --- a/kcmkwin/kwincompositing/ktimerdialog.cpp +++ b/kcmkwin/kwincompositing/ktimerdialog.cpp @@ -52,6 +52,7 @@ KTimerDialog::KTimerDialog( int msec, TimerStyle style, QWidget *parent, setCaption( caption ); setButtons( (ButtonCodes)buttonMask ); setDefaultButton( defaultButton ); + setButtonFocus( defaultButton ); // setDefaultButton() doesn't do this showButtonSeparator( separator ); setButtonGuiItem( User1, user1 ); setButtonGuiItem( User2, user2 );