summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/mygtk2.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index f8d9db324..cc701ab8b 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -476,7 +476,11 @@ sub _gtk__MagicWindow {
my $banner;
if (!$::isEmbedded && !$::isInstall && $::Wizard_title) {
- $banner = Gtk2::Banner->new($opts->{icon_no_error}, $::Wizard_title) or log::l("ERROR: missing wizard banner");
+ if (_find_imgfile($opts->{icon_no_error})) {
+ $banner = Gtk2::Banner->new($opts->{icon_no_error}, $::Wizard_title);
+ } else {
+ log::l("ERROR: missing wizard banner $opts->{icon_no_error}");
+ }
}
$::WizardTable = gtknew('VBox', if_($banner, children_tight => [ $banner ]));