From 80d1090738672b2aca0907593c6c751ee73873f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 19 Aug 2008 14:43:50 +0000 Subject: [PATCH] Really funny ... who can spot the mistake? svn path=/trunk/KDE/kdebase/workspace/; revision=849426 --- kcmkwin/kwincompositing/ktimerdialog.cpp | 48 +----------------------- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/kcmkwin/kwincompositing/ktimerdialog.cpp b/kcmkwin/kwincompositing/ktimerdialog.cpp index d845cb1c61..81b3a22303 100644 --- a/kcmkwin/kwincompositing/ktimerdialog.cpp +++ b/kcmkwin/kwincompositing/ktimerdialog.cpp @@ -172,51 +172,5 @@ void KTimerDialog::slotUpdateTime( bool update ) void KTimerDialog::slotInternalTimeout() { emit timerTimeout(); - switch ( buttonOnTimeout ) { - case Help: - slotButtonClicked(KDialog::Help); - break; - case Default: - slotButtonClicked(KDialog::Default); - break; - case Ok: - slotButtonClicked(KDialog::Ok); - break; - case Apply: - slotButtonClicked(KDialog::Apply); - break; - case Try: - slotButtonClicked(KDialog::Try); - break; - case Cancel: - slotButtonClicked(KDialog::Cancel); - break; - case Close: - slotButtonClicked(KDialog::Close); - break; - case User1: - slotButtonClicked(KDialog::User1); - break; - case User2: - slotButtonClicked(KDialog::User2); - break; - case User3: - slotButtonClicked(KDialog::User3); - break; - case No: - slotButtonClicked(KDialog::No); - break; - case Yes: - slotButtonClicked(KDialog::Cancel); - break; - case Details: - slotButtonClicked(KDialog::Details); - break; - case None: - slotButtonClicked(KDialog::None); - break; - case NoDefault: - slotButtonClicked(KDialog::NoDefault); - break; - } + slotButtonClicked( buttonOnTimeout ); }