diff options
author | bubnikv <bubnikv@gmail.com> | 2018-02-15 18:41:26 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-02-15 18:43:06 +0300 |
commit | 67668b13c95167b6d16fc4cdc345ea2c30baff86 (patch) | |
tree | d30de3a612a788828fb5b80435ec283d93cfd838 | |
parent | 49df8bb84cb87c3f98c47a8cb9b232d2bca15283 (diff) |
Fixed a bug, when a color selection popped up when clicking
on the print or printer combo box icon.
-rw-r--r-- | lib/Slic3r/GUI/Plater.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 10d65475c..e38dfecfe 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -365,7 +365,9 @@ sub new { my $text = Wx::StaticText->new($self, -1, "$group_labels{$group}:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT); $text->SetFont($Slic3r::GUI::small_font); my $choice = Wx::BitmapComboBox->new($self, -1, "", wxDefaultPosition, wxDefaultSize, [], wxCB_READONLY); - EVT_LEFT_DOWN($choice, sub { $self->filament_color_box_lmouse_down(0, @_); } ); + if ($group eq 'filament') { + EVT_LEFT_DOWN($choice, sub { $self->filament_color_box_lmouse_down(0, @_); } ); + } $self->{preset_choosers}{$group} = [$choice]; # setup the listener EVT_COMBOBOX($choice, $choice, sub { |