Skip to content

Commit

Permalink
Merge pull request #3166 from hippich/pk-fix-about-screen
Browse files Browse the repository at this point in the history
Fix Slic3r crash when opening About dialog
  • Loading branch information
alranel committed Mar 13, 2016
2 parents 7aafa54 + 571b406 commit 1a09ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Slic3r/GUI/AboutDialog.pm
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/Slic3r/GUI/Projector.pm
Expand Up @@ -375,7 +375,7 @@ sub new {
}

{
my $buttons = $self->CreateStdDialogButtonSizer(wxCLOSE);
my $buttons = $self->CreateStdDialogButtonSizer(wxOK);
EVT_BUTTON($self, wxID_CLOSE, sub {
$self->_close;
});
Expand Down

0 comments on commit 1a09ae8

Please sign in to comment.