summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-08-22 22:51:53 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-08-22 22:51:53 +0000
commitc30b9fc33dca319747b05a8163914798453f75a2 (patch)
tree0aa040033caf265913ed38920532431071d1ddfc /perl-install/standalone
parent61a62dba86e87256b26173be6ad4e53722a9a4a3 (diff)
downloaddrakx-c30b9fc33dca319747b05a8163914798453f75a2.tar
drakx-c30b9fc33dca319747b05a8163914798453f75a2.tar.gz
drakx-c30b9fc33dca319747b05a8163914798453f75a2.tar.bz2
drakx-c30b9fc33dca319747b05a8163914798453f75a2.tar.xz
drakx-c30b9fc33dca319747b05a8163914798453f75a2.zip
- Fixed bug #17718 in both printerdrake and scannerdrake.
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/scannerdrake26
1 files changed, 14 insertions, 12 deletions
diff --git a/perl-install/standalone/scannerdrake b/perl-install/standalone/scannerdrake
index 2731505d0..61e92e692 100755
--- a/perl-install/standalone/scannerdrake
+++ b/perl-install/standalone/scannerdrake
@@ -635,12 +635,13 @@ sub sharewindow {
cancel => "",
},
# List the hosts
- [ { val => \$choice, format => \&translate,
- sort => 0, separator => "####",
- tree_expanded => 1,
- quit_if_double_click => 1,
- allow_empty_list => 1,
- list => \@list },
+ [ if_($#list >= 0,
+ { val => \$choice, format => \&translate,
+ sort => 0, separator => "####",
+ tree_expanded => 1,
+ quit_if_double_click => 1,
+ allow_empty_list => 1,
+ list => \@list }),
{ val => N("Add host"),
type => 'button',
clicked_may_quit => sub {
@@ -785,12 +786,13 @@ sub sharewindow {
cancel => "",
},
# List the hosts
- [ { val => \$choice, format => \&translate,
- sort => 0, separator => "####",
- tree_expanded => 1,
- quit_if_double_click => 1,
- allow_empty_list => 1,
- list => \@list },
+ [ if_($#list >= 0,
+ { val => \$choice, format => \&translate,
+ sort => 0, separator => "####",
+ tree_expanded => 1,
+ quit_if_double_click => 1,
+ allow_empty_list => 1,
+ list => \@list }),
{ val => N("Add host"),
type => 'button',
clicked_may_quit => sub {