From 23309e1be090682b7d1375ff4c64310f1317e670 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 30 Apr 2012 23:24:01 +0200 Subject: [PATCH] Fixed warning --- lib/Slic3r/GUI/Dashboard.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/Dashboard.pm b/lib/Slic3r/GUI/Dashboard.pm index 95ef76d3b..04feea92f 100644 --- a/lib/Slic3r/GUI/Dashboard.pm +++ b/lib/Slic3r/GUI/Dashboard.pm @@ -142,7 +142,6 @@ sub load_file { $self->{list}->InsertStringItem($obj_idx, basename($input_file)); $self->{list}->SetItem($obj_idx, 1, "1"); $self->{list}->SetItem($obj_idx, 2, "100%"); - $self->{list}->Select($obj_idx, 0); push @{$self->{scale}}, 1; $self->make_thumbnail($obj_idx); @@ -586,7 +585,7 @@ sub selection_changed { sub selected_object_idx { my $self = shift; - return $self->{selected_objects}[0][0] || $self->{list}->GetFirstSelected; + return $self->{selected_objects}[0] ? $self->{selected_objects}[0][0] : $self->{list}->GetFirstSelected; } sub to_pixel {