SVN: toys/kernelupdatenotifier/kernelupdatenotifier.cpp
shadzik
shadzik at pld-linux.org
Fri Aug 7 18:30:01 CEST 2009
Author: shadzik
Date: Fri Aug 7 18:30:01 2009
New Revision: 10458
Modified:
toys/kernelupdatenotifier/kernelupdatenotifier.cpp
Log:
- add cancelation button to close the notification
Modified: toys/kernelupdatenotifier/kernelupdatenotifier.cpp
==============================================================================
--- toys/kernelupdatenotifier/kernelupdatenotifier.cpp (original)
+++ toys/kernelupdatenotifier/kernelupdatenotifier.cpp Fri Aug 7 18:30:01 2009
@@ -54,11 +54,13 @@
QStringList actions;
actions << i18n("Reboot Now!");
+ actions << i18n("Cancel");
notify->setActions(actions);
connect(notify, SIGNAL(activated(uint)),
this, SLOT(handleRebootAction(uint)));
- connect(notify, SIGNAL(closed()),
+ //connect(notify, SIGNAL(closed()),
+ connect(notify, SIGNAL(activated(uint)),
this , SLOT(handleRebootActionClosed()));
notify->sendEvent();
More information about the pld-cvs-commit
mailing list