summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2003-09-02 15:00:59 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2003-09-02 15:00:59 +0000
commit63641bd57691a4649731de6c30958cb3715a66db (patch)
treede1920e13b1f86bd1fab2fb8752c5d6c3f3ad75c /perl-install/standalone
parent261d3cb4652fd2ed70613a0ef9a5a5d9daf15b5c (diff)
downloaddrakx-63641bd57691a4649731de6c30958cb3715a66db.tar
drakx-63641bd57691a4649731de6c30958cb3715a66db.tar.gz
drakx-63641bd57691a4649731de6c30958cb3715a66db.tar.bz2
drakx-63641bd57691a4649731de6c30958cb3715a66db.tar.xz
drakx-63641bd57691a4649731de6c30958cb3715a66db.zip
Prevent main window crash when queue list gets empty by deleting all
print queues.
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/printerdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/printerdrake b/perl-install/standalone/printerdrake
index 3d739d1d2..a22970379 100755
--- a/perl-install/standalone/printerdrake
+++ b/perl-install/standalone/printerdrake
@@ -404,7 +404,7 @@ sub set_selection_on_first {
$model = $rtree_model;
}
my $iter = $model->get_iter_first();
- $tree->get_selection->select_iter($iter);
+ $tree->get_selection->select_iter($iter) if $iter;
}
sub set_selection {