From 4f32a1cf9d3c58573aefd20f78cad076ee2b57dc Mon Sep 17 00:00:00 2001 From: Pavel Karoukin Date: Sat, 19 Dec 2015 10:47:15 -0600 Subject: [PATCH 1/2] Fix Slic3r crash when opening About dialog --- lib/Slic3r/GUI/AboutDialog.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/AboutDialog.pm b/lib/Slic3r/GUI/AboutDialog.pm index 6fc83b6045..78f89efca8 100644 --- a/lib/Slic3r/GUI/AboutDialog.pm +++ b/lib/Slic3r/GUI/AboutDialog.pm @@ -66,7 +66,7 @@ sub new { $vsizer->Add($html, 1, wxEXPAND | wxALIGN_LEFT | wxRIGHT | wxBOTTOM, 20); EVT_HTML_LINK_CLICKED($self, $html, \&link_clicked); - my $buttons = $self->CreateStdDialogButtonSizer(wxCLOSE); + my $buttons = $self->CreateStdDialogButtonSizer(wxOK); $self->SetEscapeId(wxID_CLOSE); EVT_BUTTON($self, wxID_CLOSE, sub { $self->EndModal(wxID_CLOSE); From 571b406bd60c4e7a308b26b250b6cba82c3f06c2 Mon Sep 17 00:00:00 2001 From: Pavel Karoukin Date: Sun, 27 Dec 2015 11:26:11 -0600 Subject: [PATCH 2/2] @farhaven: There's one more wxCLOSE in lib/Slic3r/GUI/Projector.pm, that one should probably be changed as well. --- lib/Slic3r/GUI/Projector.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Projector.pm b/lib/Slic3r/GUI/Projector.pm index af12b6b8cd..28f4419e4d 100644 --- a/lib/Slic3r/GUI/Projector.pm +++ b/lib/Slic3r/GUI/Projector.pm @@ -375,7 +375,7 @@ sub new { } { - my $buttons = $self->CreateStdDialogButtonSizer(wxCLOSE); + my $buttons = $self->CreateStdDialogButtonSizer(wxOK); EVT_BUTTON($self, wxID_CLOSE, sub { $self->_close; });