From 4b03bebe61838540f79bccc6a40a8f84bce79683 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Thu, 28 Aug 2003 10:14:46 +0000 Subject: [PATCH] Usability: Set a sane default to the timeout when the user selects the option for the first time. svn path=/trunk/kdebase/kwin/; revision=245892 --- kcmkwin/kwinoptions/windows.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 9dfe210604..5ebf94cf69 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -294,15 +294,17 @@ void KFocusConfig::setAutoRaiseEnabled() } -//CT 23Oct1998 make AutoRaise toggling much clear void KFocusConfig::autoRaiseOnTog(bool a) { autoRaise->setEnabled(a); clickRaiseOn->setEnabled( !a ); if ( a ) + { clickRaiseOn->setChecked( TRUE ); + if(getAutoRaiseInterval() == 0) + setAutoRaiseInterval(750); + } } -//CT void KFocusConfig::clickRaiseOnTog(bool ) { }