summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-13 15:21:01 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-13 15:21:01 +0000
commitca0c35149c939b210b58691c01ad941ac3d3fefd (patch)
tree1d7be6ef0d62cd7401d55bce9436d56058ac2e8a
parent7ccf09c17b69163010c5330b971fb9143d9e932d (diff)
downloadcontrol-center-ca0c35149c939b210b58691c01ad941ac3d3fefd.tar
control-center-ca0c35149c939b210b58691c01ad941ac3d3fefd.tar.gz
control-center-ca0c35149c939b210b58691c01ad941ac3d3fefd.tar.bz2
control-center-ca0c35149c939b210b58691c01ad941ac3d3fefd.tar.xz
control-center-ca0c35149c939b210b58691c01ad941ac3d3fefd.zip
(quit_global) popup a confirm dialog before exiting
needs drakxtools => 15.11
-rw-r--r--NEWS2
-rwxr-xr-xcontrol-center2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 627089ff..16ceb831 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- popup a confirm dialog before exiting
+
Version 12.32 - 6 December 2012 Thierry Vignaud
- fix a crash (mga#6982)
diff --git a/control-center b/control-center
index b59a3e68..e96c6157 100755
--- a/control-center
+++ b/control-center
@@ -1315,6 +1315,8 @@ sub kill_logdrake() {
}
sub quit_global() {
+ return 1 if mygtk2::quit_popup();
+
if (@pid_launched) {
&kill_children();
return 1; # tell gtk+ not to quit