summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_file_notebook.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-26 19:57:02 +0100
committerRobin Gareus <robin@gareus.org>2019-02-26 19:57:27 +0100
commit85877adf56cd0150cf30f912367b456db8dd8a40 (patch)
tree5322f409b2d587d9192da5fa62522ecb967bd544 /gtk2_ardour/export_file_notebook.cc
parent47c265f2eca8fbbcfabadfbcee30ab480ef9016b (diff)
Do not save export format for indirect changes
Previously selecting a different export format that changed global settings (eg. toggle analysis) triggered an indirect save of the format.
Diffstat (limited to 'gtk2_ardour/export_file_notebook.cc')
-rw-r--r--gtk2_ardour/export_file_notebook.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk2_ardour/export_file_notebook.cc b/gtk2_ardour/export_file_notebook.cc
index a91a253b3c..3d2ec45208 100644
--- a/gtk2_ardour/export_file_notebook.cc
+++ b/gtk2_ardour/export_file_notebook.cc
@@ -260,8 +260,8 @@ ExportFileNotebook::FilePage::FilePage (Session * s, ManagerPtr profile_manager,
sigc::mem_fun (*this, &ExportFileNotebook::FilePage::critical_selection_changed));
soundcloud_upload_button.signal_toggled().connect (sigc::mem_fun (*parent, &ExportFileNotebook::update_soundcloud_upload));
- soundcloud_upload_button.signal_toggled().connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::soundcloud_upload_changed));
- analysis_button.signal_toggled().connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::analysis_changed));
+ soundcloud_button_connection = soundcloud_upload_button.signal_toggled().connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::soundcloud_upload_changed));
+ analysis_button_connection = analysis_button.signal_toggled().connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::analysis_changed));
/* Tab widget */
tab_close_button.add (*Gtk::manage (new Gtk::Image (::get_icon("close"))));
@@ -361,7 +361,15 @@ ExportFileNotebook::FilePage::critical_selection_changed ()
{
update_tab_label();
update_example_filename();
+
+ soundcloud_button_connection.block ();
+ analysis_button_connection.block ();
+
update_analysis_button();
update_soundcloud_upload_button();
+
+ analysis_button_connection.unblock ();
+ soundcloud_button_connection.unblock ();
+
CriticalSelectionChanged();
}