Fix Cancel button. #1461

This commit is contained in:
Alessandro Ranellucci 2013-10-14 22:07:41 +02:00
parent 4c2c31b554
commit 127e38d4a4

View file

@ -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;