void ScanThread::stop()
{
- if( !interrupt ) {
// Cancel previous job
- interrupt = 1;
- }
+ interrupt = 1;
Thread::join();
if( progress ) {
progress->stop_progress();
edit->window->update_list();
edit->window->unlock_window();
}
+ edit->window->set_done(interrupt || progress->is_cancelled() ? 1 : 0);
}