summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorColin Fletcher <colin.m.fletcher@googlemail.com>2013-10-07 20:22:56 +0100
committerColin Fletcher <colin.m.fletcher@googlemail.com>2013-10-07 20:22:56 +0100
commit8b9a1fae6a580b526b3fc784581e6d0c8031b6db (patch)
tree3af68d2592492135ae315340cfb71d4dd3ec7340 /gtk2_ardour
parenta3465ff5d3b830e79a0e383b3c85df0c8cc3af9e (diff)
Update export format when 'upload to soundcloud' changes.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/export_format_dialog.cc6
-rw-r--r--gtk2_ardour/export_format_dialog.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/export_format_dialog.cc b/gtk2_ardour/export_format_dialog.cc
index 00a9466cb9..62d98c5cd2 100644
--- a/gtk2_ardour/export_format_dialog.cc
+++ b/gtk2_ardour/export_format_dialog.cc
@@ -145,6 +145,7 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
with_cue.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_with_cue));
with_toc.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_with_toc));
+ upload_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_upload));
cue_toc_vbox.pack_start (with_cue, false, false);
cue_toc_vbox.pack_start (with_toc, false, false);
@@ -722,6 +723,11 @@ ExportFormatDialog::update_with_toc ()
}
void
+ExportFormatDialog::update_upload ()
+{
+ manager.select_upload (upload_checkbox.get_active());
+}
+
ExportFormatDialog::update_description()
{
std::string text = ": " + format->description(false);
diff --git a/gtk2_ardour/export_format_dialog.h b/gtk2_ardour/export_format_dialog.h
index 8e4b239ea0..96405c33dd 100644
--- a/gtk2_ardour/export_format_dialog.h
+++ b/gtk2_ardour/export_format_dialog.h
@@ -311,6 +311,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
void update_with_toc ();
void update_with_cue ();
+ void update_upload ();
Gtk::TreeView sample_format_view;
Gtk::TreeView dither_type_view;