mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 17:46:34 +01:00
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.
This commit is contained in:
parent
47c265f2ec
commit
85877adf56
2 changed files with 14 additions and 2 deletions
|
|
@ -260,8 +260,8 @@ ExportFileNotebook::FilePage::FilePage (Session * s, ManagerPtr profile_manager,
|
||||||
sigc::mem_fun (*this, &ExportFileNotebook::FilePage::critical_selection_changed));
|
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 (*parent, &ExportFileNotebook::update_soundcloud_upload));
|
||||||
soundcloud_upload_button.signal_toggled().connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::soundcloud_upload_changed));
|
soundcloud_button_connection = 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));
|
analysis_button_connection = analysis_button.signal_toggled().connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::analysis_changed));
|
||||||
/* Tab widget */
|
/* Tab widget */
|
||||||
|
|
||||||
tab_close_button.add (*Gtk::manage (new Gtk::Image (::get_icon("close"))));
|
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_tab_label();
|
||||||
update_example_filename();
|
update_example_filename();
|
||||||
|
|
||||||
|
soundcloud_button_connection.block ();
|
||||||
|
analysis_button_connection.block ();
|
||||||
|
|
||||||
update_analysis_button();
|
update_analysis_button();
|
||||||
update_soundcloud_upload_button();
|
update_soundcloud_upload_button();
|
||||||
|
|
||||||
|
analysis_button_connection.unblock ();
|
||||||
|
soundcloud_button_connection.unblock ();
|
||||||
|
|
||||||
CriticalSelectionChanged();
|
CriticalSelectionChanged();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,11 @@ private:
|
||||||
Gtk::Label tab_label;
|
Gtk::Label tab_label;
|
||||||
Gtk::Alignment tab_close_alignment;
|
Gtk::Alignment tab_close_alignment;
|
||||||
Gtk::Button tab_close_button;
|
Gtk::Button tab_close_button;
|
||||||
|
|
||||||
uint32_t tab_number;
|
uint32_t tab_number;
|
||||||
|
|
||||||
|
sigc::connection soundcloud_button_connection;
|
||||||
|
sigc::connection analysis_button_connection;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue