diff --git a/src/countdowndialog.cpp b/src/countdowndialog.cpp index 99b519e..6393875 100644 --- a/src/countdowndialog.cpp +++ b/src/countdowndialog.cpp @@ -146,6 +146,19 @@ void countDownDialog::pB_cancel_pressed() { kdDebugFuncOut(trace); } +void countDownDialog::reject() { + kdDebugFuncIn(trace); + + if (PROGRESS->isActive()) + PROGRESS->stop(); + + chancel = true; + + countdown_Dialog::reject(); + + kdDebugFuncOut(trace); +} + /*! * \b TQT_SLOT to handle the change of the progressbar. */ diff --git a/src/countdowndialog.h b/src/countdowndialog.h index ed8778b..ca1164c 100644 --- a/src/countdowndialog.h +++ b/src/countdowndialog.h @@ -72,9 +72,11 @@ private slots: //! to update the progressbar void updateProgress(); - //! to catch the event if the 'Chancel' button get pressed + //! to catch the event if the 'Cancel' button get pressed void pB_cancel_pressed(); - + //! to catch ESC presses + void reject(); + signals: //! emited if the dialog get closed void dialogClosed( bool result);