diff options
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.cc')
-rw-r--r-- | gtk2_ardour/strip_silence_dialog.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.cc b/gtk2_ardour/strip_silence_dialog.cc index 6aeec29cd9..242a485221 100644 --- a/gtk2_ardour/strip_silence_dialog.cc +++ b/gtk2_ardour/strip_silence_dialog.cc @@ -131,6 +131,8 @@ StripSilenceDialog::StripSilenceDialog (Session* s, list<RegionView*> const & v) Completed.connect (_completed_connection, invalidator(*this), boost::bind (&StripSilenceDialog::update, this), gui_context ()); _thread_should_finish = false; pthread_create (&_thread, 0, StripSilenceDialog::_detection_thread_work, this); + + signal_response().connect(sigc::mem_fun (*this, &StripSilenceDialog::finished)); } @@ -364,4 +366,12 @@ StripSilenceDialog::get_state () void StripSilenceDialog::set_state (const XMLNode &) { +} + +void +StripSilenceDialog::finished(int response) +{ + if(response == Gtk::RESPONSE_OK) { + _session->add_extra_xml(get_state()); + } }
\ No newline at end of file |