Merge pull request #3166 from hippich/pk-fix-about-screen
Fix Slic3r crash when opening About dialog
This commit is contained in:
commit
1a09ae81db
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ sub new {
|
||||||
$vsizer->Add($html, 1, wxEXPAND | wxALIGN_LEFT | wxRIGHT | wxBOTTOM, 20);
|
$vsizer->Add($html, 1, wxEXPAND | wxALIGN_LEFT | wxRIGHT | wxBOTTOM, 20);
|
||||||
EVT_HTML_LINK_CLICKED($self, $html, \&link_clicked);
|
EVT_HTML_LINK_CLICKED($self, $html, \&link_clicked);
|
||||||
|
|
||||||
my $buttons = $self->CreateStdDialogButtonSizer(wxCLOSE);
|
my $buttons = $self->CreateStdDialogButtonSizer(wxOK);
|
||||||
$self->SetEscapeId(wxID_CLOSE);
|
$self->SetEscapeId(wxID_CLOSE);
|
||||||
EVT_BUTTON($self, wxID_CLOSE, sub {
|
EVT_BUTTON($self, wxID_CLOSE, sub {
|
||||||
$self->EndModal(wxID_CLOSE);
|
$self->EndModal(wxID_CLOSE);
|
||||||
|
|
|
@ -375,7 +375,7 @@ sub new {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
my $buttons = $self->CreateStdDialogButtonSizer(wxCLOSE);
|
my $buttons = $self->CreateStdDialogButtonSizer(wxOK);
|
||||||
EVT_BUTTON($self, wxID_CLOSE, sub {
|
EVT_BUTTON($self, wxID_CLOSE, sub {
|
||||||
$self->_close;
|
$self->_close;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue