From fab0d1579f8be4859958217e7b632acfbf191de2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 16 Apr 2016 20:39:37 +1000 Subject: Fixed ESC handling in inactivity dialog. This resolves bug 2632. Signed-off-by: Michele Calgaro --- src/countdowndialog.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/countdowndialog.cpp') 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. */ -- cgit v1.2.1