summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-25 15:40:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-25 15:40:06 +0000
commit85f1ea414035c750e76ce778077b3e51856712f8 (patch)
treedfdb4d209fda1555ff7cb7cc049236bbaa5fa0e8 /perl-install/mygtk2.pm
parent04d43bf1831c7c33e2522c4a9276e5b7d65f44da (diff)
downloaddrakx-backup-do-not-use-85f1ea414035c750e76ce778077b3e51856712f8.tar
drakx-backup-do-not-use-85f1ea414035c750e76ce778077b3e51856712f8.tar.gz
drakx-backup-do-not-use-85f1ea414035c750e76ce778077b3e51856712f8.tar.bz2
drakx-backup-do-not-use-85f1ea414035c750e76ce778077b3e51856712f8.tar.xz
drakx-backup-do-not-use-85f1ea414035c750e76ce778077b3e51856712f8.zip
( _create_Window) do not run main_quit if not in a main loop (eg:
while loading GUI) but block window deletion instead (#39230)
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 437112054..9c2d100ca 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -948,7 +948,12 @@ sub _create_Window {
$w->destroy;
die 'wizcancel';
} else {
- Gtk2->main_quit;
+ if (Gtk2->main_level) {
+ Gtk2->main_quit;
+ } else {
+ # block window deletion if not in main loop (eg: while starting the GUI)
+ return 1;
+ }
}
});