summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-18 11:09:40 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-18 11:09:40 +0000
commitb68fa9e78741d11b11f60515b5ee0d84975407e7 (patch)
treee179ec8d047a15822828058fa0962970589463bc
parent25ac601493b613125fb8045d229272bec5340e41 (diff)
downloaddrakx-b68fa9e78741d11b11f60515b5ee0d84975407e7.tar
drakx-b68fa9e78741d11b11f60515b5ee0d84975407e7.tar.gz
drakx-b68fa9e78741d11b11f60515b5ee0d84975407e7.tar.bz2
drakx-b68fa9e78741d11b11f60515b5ee0d84975407e7.tar.xz
drakx-b68fa9e78741d11b11f60515b5ee0d84975407e7.zip
(_gtk_any_Window) make sure not to vivify transient_for else latest
commit breaks installer
-rw-r--r--perl-install/mygtk2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 802d3e355..3067df65f 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -615,7 +615,7 @@ sub _gtk_any_Window {
}
$w->set_modal(delete $opts->{modal}) if exists $opts->{modal};
- $opts->{transient_for} ||= $::main_window;
+ $opts->{transient_for} ||= $::main_window if $::main_window;
$w->set_modal(1) if exists $opts->{transient_for};
$w->set_transient_for(delete $opts->{transient_for}) if exists $opts->{transient_for};
$w->set_border_width(delete $opts->{border_width}) if exists $opts->{border_width};