diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm index 7f1787ad3..5d366e65a 100644 --- a/lib/Slic3r/GUI.pm +++ b/lib/Slic3r/GUI.pm @@ -127,7 +127,7 @@ sub about { sub on_close { my ($frame, $event) = @_; - $event->CanVeto ? $event->Skip($frame->{skeinpanel}->on_close) : $event->Skip(1); + $event->CanVeto ? $event->Skip($frame->{skeinpanel}->check_unsaved_changes) : $event->Skip(1); } sub catch_error { diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index fc7d0fa81..ed83a5bef 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -232,7 +232,7 @@ sub config_wizard { } } -sub on_close { +sub check_unsaved_changes { my $self = shift; my @dirty; @@ -242,7 +242,7 @@ sub on_close { if (@dirty) { my $titles = join ', ', @dirty; - my $confirm = Wx::MessageDialog->new($self, "You have unsaved changes ($titles). Exit anyway?", + my $confirm = Wx::MessageDialog->new($self, "You have unsaved changes ($titles). Discard changes and continue anyway?", 'Unsaved Presets', wxICON_QUESTION | wxOK | wxCANCEL); return ($confirm->ShowModal == wxID_OK); }