fix for progressindicator not being destroyed after export to png

This commit is contained in:
tamasmeszaros 2018-07-03 11:40:02 +02:00
parent ec571aec44
commit 10b19c8604
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ sub new {
eval { Wx::ToolTip::SetAutoPop(32767) }; eval { Wx::ToolTip::SetAutoPop(32767) };
# initialize status bar # initialize status bar
$self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, -1); $self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, Wx::NewId);
$self->{statusbar}->SetStatusText(L("Version ").$Slic3r::VERSION.L(" - Remember to check for updates at http://github.com/prusa3d/slic3r/releases")); $self->{statusbar}->SetStatusText(L("Version ").$Slic3r::VERSION.L(" - Remember to check for updates at http://github.com/prusa3d/slic3r/releases"));
$self->SetStatusBar($self->{statusbar}); $self->SetStatusBar($self->{statusbar});

View File

@ -378,10 +378,10 @@ void PrintController::slice_to_png()
} catch (std::exception& e) { } catch (std::exception& e) {
pri->cancel(); pri->cancel();
print_->progressindicator = pbak;
report_issue(IssueType::ERR, e.what(), _(L("Exception occured"))); report_issue(IssueType::ERR, e.what(), _(L("Exception occured")));
} }
print_->progressindicator = pbak;
scale_back(); scale_back();
} }