summaryrefslogtreecommitdiff
path: root/gtk2_ardour/interthread_progress_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/interthread_progress_window.cc')
-rw-r--r--gtk2_ardour/interthread_progress_window.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/interthread_progress_window.cc b/gtk2_ardour/interthread_progress_window.cc
index e63bf629a9..2f64644d5d 100644
--- a/gtk2_ardour/interthread_progress_window.cc
+++ b/gtk2_ardour/interthread_progress_window.cc
@@ -56,6 +56,14 @@ InterthreadProgressWindow::InterthreadProgressWindow (ARDOUR::InterThreadInfo* i
}
void
+InterthreadProgressWindow::on_hide ()
+{
+ if (!_interthread_info->done) {
+ _interthread_info->cancel = true;
+ }
+}
+
+void
InterthreadProgressWindow::cancel_clicked ()
{
_interthread_info->cancel = true;