summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-27 08:32:01 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-27 08:32:01 +0000
commitff023c2adbe51b81e93b42cc5e19b20f560851d7 (patch)
tree17f477c61de1b6e3fb41b328001d7e3d1adf2ac3
parentca8dce326734050448f93fdfd6b93c6a779dd2c5 (diff)
downloadcontrol-center-ff023c2adbe51b81e93b42cc5e19b20f560851d7.tar
control-center-ff023c2adbe51b81e93b42cc5e19b20f560851d7.tar.gz
control-center-ff023c2adbe51b81e93b42cc5e19b20f560851d7.tar.bz2
control-center-ff023c2adbe51b81e93b42cc5e19b20f560851d7.tar.xz
control-center-ff023c2adbe51b81e93b42cc5e19b20f560851d7.zip
restore old behaviour: clicking on another section cancel the current embedded
application.
-rwxr-xr-xcontrol-center8
1 files changed, 6 insertions, 2 deletions
diff --git a/control-center b/control-center
index f8b7380e..4bc11f6a 100755
--- a/control-center
+++ b/control-center
@@ -475,8 +475,11 @@ foreach (@tree) {
});
$darea_left->signal_connect(button_release_event => sub {
return if $left_locked;
- return if $pending_app && !splash_warning(N("The modifications done in the current module won't be saved."), 1);
- clean_socket();
+ if ($pending_app) {
+ return if !splash_warning(N("The modifications done in the current module won't be saved."), 1);
+ kill_children();
+ sig_usr1();
+ }
# deselect previously selected darea
if ($index_sav != -1) {
@@ -604,6 +607,7 @@ sub sig_child {
# got when child properly exited
sub sig_usr1 {
+ $pending_app = 0;
$left_locked = 0;
clean_socket();
gtkset_mousecursor_normal();