summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-24 10:47:16 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-24 10:47:16 +0000
commit7de0c965b4237b883a3d9b6ab92ccd121bba58c5 (patch)
treefe4877061ebb75ea0c6a7fd75cb1e0521110dd3f
parent52439a4188380b1a907b5d4fbfdcbdc83dc8d96c (diff)
downloadcontrol-center-7de0c965b4237b883a3d9b6ab92ccd121bba58c5.tar
control-center-7de0c965b4237b883a3d9b6ab92ccd121bba58c5.tar.gz
control-center-7de0c965b4237b883a3d9b6ab92ccd121bba58c5.tar.bz2
control-center-7de0c965b4237b883a3d9b6ab92ccd121bba58c5.tar.xz
control-center-7de0c965b4237b883a3d9b6ab92ccd121bba58c5.zip
(quit_global) kill embedded tool instead of exiting the whole mcc when one
click on the close icon and when a tool is embedded
-rwxr-xr-xcontrol-center4
1 files changed, 4 insertions, 0 deletions
diff --git a/control-center b/control-center
index 4df6384b..f3d3ef4c 100755
--- a/control-center
+++ b/control-center
@@ -1419,6 +1419,10 @@ sub kill_logdrake() {
}
sub quit_global() {
+ if (@pid_launched) {
+ &kill_children();
+ return 1; # tell gtk+ not to quit
+ }
&kill_children();
&kill_logdrake();
my ($x, $y) = $window_global->get_size;