From 127e38d4a4fe3feb936fe3f66fba4775b7a861f6 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 14 Oct 2013 22:07:41 +0200 Subject: [PATCH] Fix Cancel button. #1461 --- lib/Slic3r/GUI/Plater.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 286ad72264..da000a6246 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -687,6 +687,7 @@ sub export_gcode2 { my ($config, $extra_variables, $output_file, %params) = @_; local $SIG{'KILL'} = sub { Slic3r::debugf "Exporting cancelled; exiting thread...\n"; + Slic3r::thread_cleanup(); threads->exit(); } if $Slic3r::have_threads;