summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-30 00:54:02 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-30 00:54:02 +0000
commit57ec614531375c04eac7d16fdf882311aebfe231 (patch)
treeda428d8cf4baf8ec66259f029cade6ef7859b4a7 /gtk2_ardour/sfdb_ui.cc
parentaff6cb836d3233168c26176e0bea3cea289b5588 (diff)
Reset the available import dialogue menu options when a selection is made from the channel_combo. Sort-of fixes #3397, in that you can select to selected tracks' option on the add files menu even if the number of selected tracks is not the same as the number of imported files.
git-svn-id: svn://localhost/ardour2/branches/3.0@7709 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 49eeadeb3a..6c8b4c1cfc 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -1031,6 +1031,8 @@ SoundFileOmega::reset_options ()
}
}
+ resetting_ourselves = true;
+
existing_choice = channel_combo.get_active_text();
set_popdown_strings (channel_combo, channel_strings);
@@ -1052,6 +1054,8 @@ SoundFileOmega::reset_options ()
channel_combo.set_active_text (channel_strings.front());
}
+ resetting_ourselves = false;
+
if (src_needed) {
src_combo.set_sensitive (true);
} else {
@@ -1319,6 +1323,7 @@ SoundFileOmega::SoundFileOmega (Gtk::Window& parent, string title, ARDOUR::Sessi
reset_options ();
action_combo.signal_changed().connect (sigc::mem_fun (*this, &SoundFileOmega::reset_options_noret));
+ channel_combo.signal_changed().connect (sigc::mem_fun (*this, &SoundFileOmega::reset_options_noret));
copy_files_btn.set_active (true);