mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix import-thread SNAFU
* pressing Esc or WM close button did not cancel import thread * proper Abort does not wait for import thread either It was possible to launch a 2nd (and Nth) import thread, all sharing the Editor's ImportStatus data-structure, all having the same registered thread-name and same thread-pool name. Plenty of room for crashes.
This commit is contained in:
parent
9ad096b611
commit
03660573e2
3 changed files with 13 additions and 1 deletions
|
|
@ -55,6 +55,14 @@ InterthreadProgressWindow::InterthreadProgressWindow (ARDOUR::InterThreadInfo* i
|
|||
Glib::signal_timeout().connect (sigc::mem_fun (*this, &InterthreadProgressWindow::update), 100);
|
||||
}
|
||||
|
||||
void
|
||||
InterthreadProgressWindow::on_hide ()
|
||||
{
|
||||
if (!_interthread_info->done) {
|
||||
_interthread_info->cancel = true;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
InterthreadProgressWindow::cancel_clicked ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue