From bd16366d6285a679ef3954e8de4c05f408f33b36 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 17 Jul 2012 23:24:21 +0200 Subject: [PATCH] Default to "No" when prompting about discarding unsaved changes. --- lib/Slic3r/GUI/SkeinPanel.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index ed46d7269..a31d69bfb 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -214,8 +214,8 @@ sub check_unsaved_changes { if (@dirty) { my $titles = join ', ', @dirty; 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); + 'Unsaved Presets', wxICON_QUESTION | wxYES_NO | wxNO_DEFAULT); + return ($confirm->ShowModal == wxID_YES); } return 1;