summaryrefslogtreecommitdiffstats
path: root/src/countdowndialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2016-04-16 20:39:37 +1000
committerMichele Calgaro <[email protected]>2016-04-21 15:14:14 +1000
commitfab0d1579f8be4859958217e7b632acfbf191de2 (patch)
tree46c643dc50b4546b69e3d0447f7078e6371d1abb /src/countdowndialog.cpp
parentade0320f4138ec0b221d215bf8093ecb1609421b (diff)
downloadtdepowersave-fab0d1579f8be4859958217e7b632acfbf191de2.tar.gz
tdepowersave-fab0d1579f8be4859958217e7b632acfbf191de2.zip
Fixed ESC handling in inactivity dialog. This resolves bug 2632.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/countdowndialog.cpp')
-rw-r--r--src/countdowndialog.cpp13
1 files changed, 13 insertions, 0 deletions
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.
*/