+2013-11-16 Carl Hetherington <cth@carlh.net>
+
+ * Fix erroneous reset of visible channels in audio
+ level dialog when changing gain.
+
2013-11-15 Carl Hetherington <cth@carlh.net>
* Use 2 decimal places for gamma controls instead
fcs = dynamic_pointer_cast<FFmpegContent> (acs);
}
- if (_audio_dialog && acs) {
- _audio_dialog->set_content (acs);
- }
-
if (property == AudioContentProperty::AUDIO_MAPPING) {
_mapping->set (acs ? acs->audio_mapping () : AudioMapping ());
_sizer->Layout ();
AudioPanel::content_selection_changed ()
{
AudioContentList sel = _editor->selected_audio_content ();
+
+ if (_audio_dialog && sel.size() == 1) {
+ _audio_dialog->set_content (sel.front ());
+ }
_gain->set_content (sel);
_delay->set_content (sel);
gc->StrokePath (grid);
gc->DrawText (_("Time"), data_width, _height - _y_origin + db_label_height / 2);
-
if (_type_visible[AudioPoint::PEAK]) {
for (int c = 0; c < MAX_AUDIO_CHANNELS; ++c) {