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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 9 years ago
parent ade0320f41
commit fab0d1579f

@ -398,7 +398,7 @@ msgstr "Iberna"
#: configuredialog.cpp:1787 configuredialog.cpp:1825 tdepowersave.cpp:186 #: configuredialog.cpp:1787 configuredialog.cpp:1825 tdepowersave.cpp:186
#: tdepowersave.cpp:2101 tdepowersave.cpp:2161 tdepowersave.cpp:2250 #: tdepowersave.cpp:2101 tdepowersave.cpp:2161 tdepowersave.cpp:2250
msgid "Sleep" msgid "Sleep"
msgstr "Sospendi" msgstr "Modalità sleep"
#: configuredialog.cpp:1790 configuredialog.cpp:1828 #: configuredialog.cpp:1790 configuredialog.cpp:1828
msgid "CPU Powersave policy" msgid "CPU Powersave policy"
@ -1063,11 +1063,11 @@ msgstr "Ibernazione disabilitata dall'amministratore."
#: tdepowersave.cpp:759 #: tdepowersave.cpp:759
msgid "Sleep failed" msgid "Sleep failed"
msgstr "Sospensione su RAM fallita" msgstr "Modalità sleep fallita"
#: tdepowersave.cpp:767 #: tdepowersave.cpp:767
msgid "Sleep disabled by administrator." msgid "Sleep disabled by administrator."
msgstr "Sospensione su RAM disabilitata dall'amministratore." msgstr "Modalità sleep disabilitata dall'amministratore."
#: tdepowersave.cpp:815 #: tdepowersave.cpp:815
msgid "Standby failed" msgid "Standby failed"

@ -146,6 +146,19 @@ void countDownDialog::pB_cancel_pressed() {
kdDebugFuncOut(trace); 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. * \b TQT_SLOT to handle the change of the progressbar.
*/ */

@ -72,9 +72,11 @@ private slots:
//! to update the progressbar //! to update the progressbar
void updateProgress(); 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(); void pB_cancel_pressed();
//! to catch ESC presses
void reject();
signals: signals:
//! emited if the dialog get closed //! emited if the dialog get closed
void dialogClosed( bool result); void dialogClosed( bool result);

@ -221,7 +221,7 @@ default_presentation=0
Name=SuspendToDiskEvent Name=SuspendToDiskEvent
Comment=Hibernation is started Comment=Hibernation is started
Comment[cs]=Uspávání na disk Comment[cs]=Uspávání na disk
Comment[de]='Suspend to Disk' wurde gestartet Comment[de]='Hibernate' wurde gestartet
Comment[es]=Se ha iniciado la suspensión en disco Comment[es]=Se ha iniciado la suspensión en disco
Comment[fr]=La mise en veille sur disque a été lancée Comment[fr]=La mise en veille sur disque a été lancée
Comment[it]=Ibernazione avviata Comment[it]=Ibernazione avviata
@ -276,9 +276,9 @@ default_presentation=0
[resume_from_suspend2disk_event] [resume_from_suspend2disk_event]
Name=ResumeFromSuspendToDiskEvent Name=ResumeFromSuspendToDiskEvent
Comment=Resumed from Suspend to Disk Comment=Resumed from Hibernate
Comment[cs]=Probouzení z uspání na disk Comment[cs]=Probouzení z uspání na disk
Comment[de]=Wiederaufnahme nach 'Suspend to Disk' Comment[de]=Wiederaufnahme nach 'Hibernate'
Comment[es]=Reanudación desde suspensión en disco Comment[es]=Reanudación desde suspensión en disco
Comment[fr]=Reprise après la mise en veille sur disque Comment[fr]=Reprise après la mise en veille sur disque
Comment[it]=Ripristinato da Sospendi su disco Comment[it]=Ripristinato da Sospendi su disco

Loading…
Cancel
Save