From 8c4082609f1e856943703dbbe9f5fdc4e7d23a59 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:52:21 +0000 Subject: [PATCH] Focus the cancel button by default, so that one does not activate compositing by mistake. BUG: 164150 svn path=/branches/KDE/4.1/kdebase/workspace/; revision=830911 --- 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 );