Fixed ESC handling in inactivity dialog. This resolves bug 2632.

(partially cherry-picked from fab0d1579f)

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
r14.0.x
Michele Calgaro 9 years ago
parent a0813e5f16
commit 10677701f9

@ -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.
*/

@ -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);

Loading…
Cancel
Save