From 6d858885bacaef6087b2482a2d704aa2fb9f0b40 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 10 Nov 2018 10:47:51 -0600 Subject: [PATCH] Don't close preset editor tabs. --- lib/Slic3r/GUI/Plater.pm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index a68f1a010..e630826ee 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -690,14 +690,6 @@ sub _on_change_combobox { return 0 if !$self->prompt_unsaved_changes; } wxTheApp->CallAfter(sub { - # Close the preset editor tab if any - if (exists $self->GetFrame->{preset_editor_tabs}{$group}) { - my $tabpanel = $self->GetFrame->{tabpanel}; - $tabpanel->DeletePage($tabpanel->GetPageIndex($self->GetFrame->{preset_editor_tabs}{$group})); - delete $self->GetFrame->{preset_editor_tabs}{$group}; - $tabpanel->SetSelection(0); # without this, a newly created tab will not be selected by wx - } - $self->_on_select_preset($group); # This will remove the "(modified)" mark from any dirty preset handled here.