diff options
author | Nikolaus Gullotta <nik@harrisonconsoles.com> | 2019-08-30 14:44:50 -0500 |
---|---|---|
committer | Nikolaus Gullotta <nik@harrisonconsoles.com> | 2019-08-30 14:44:50 -0500 |
commit | f44a436f7089bd2413e3756007d386b5568cf3da (patch) | |
tree | 1340ddeb267c427583693f72ea892d5a50e8769e /gtk2_ardour/strip_silence_dialog.cc | |
parent | d5988b232c63ed35d20101ee8917c4e2a0596603 (diff) |
Move StripSilenceDialog XML to dedicated function
This moves the Session::add_extra_xml() call out of editor_ops.cc and
moves it to its own class method StripSilenceDialog::finished()
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 |