Update the audio gain when it has been changed by the Calculate dialog.
authorCarl Hetherington <cth@carlh.net>
Sat, 15 Sep 2012 19:07:32 +0000 (20:07 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 15 Sep 2012 19:07:32 +0000 (20:07 +0100)
ChangeLog
src/wx/film_editor.cc

index 47f701c295dd81e5bc1588654289d78c7992b53c..244cbdaf804ffbb5880303ed315ab11038e7ff63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-09-15  Carl Hetherington  <cth@carlh.net>
+
+       * Slightly speculative fix for failure to
+       take note of audio gain changes caused by
+       the Calculate dialogue.
+
 2012-09-12  Carl Hetherington  <cth@carlh.net>
 
        * Fix crash when FFmpeg doesn't set up the audio channel
index f35996644dd71d8c30f1c5e06b9a2618a7911f22..c8ef0f233e8a6210ba44a327d9ea9912fd7796a8 100644 (file)
@@ -654,5 +654,12 @@ FilmEditor::audio_gain_calculate_button_clicked (wxCommandEvent &)
                        d->actual_fader ()
                        )
                );
+
+       /* This appears to be necessary, as the change is not signalled,
+          I think.
+       */
+       wxCommandEvent dummy;
+       audio_gain_changed (dummy);
+       
        d->Destroy ();
 }