Update new panels when they are created.
authorCarl Hetherington <cth@carlh.net>
Sun, 19 Aug 2018 13:01:14 +0000 (14:01 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 19 Aug 2018 13:01:14 +0000 (14:01 +0100)
src/wx/audio_panel.cc
src/wx/text_panel.cc
src/wx/video_panel.cc

index 88eae5141b66f5f9dba363da59f46f015be5cf9e..31998f936ce317448b261355d876ff8d441773ba 100644 (file)
@@ -119,6 +119,8 @@ AudioPanel::AudioPanel (ContentPanel* p)
        _gain->wrapped()->SetIncrement (0.5);
        _delay->wrapped()->SetRange (-1000, 1000);
 
+       content_selection_changed ();
+
        _reference->Bind             (wxEVT_CHECKBOX, boost::bind (&AudioPanel::reference_clicked, this));
        _show->Bind                  (wxEVT_BUTTON,   boost::bind (&AudioPanel::show_clicked, this));
        _gain_calculate_button->Bind (wxEVT_BUTTON,   boost::bind (&AudioPanel::gain_calculate_button_clicked, this));
index 7c2ddd7f9575c1b6dd2d0b0a26456ab7649808fc..68f246913f543ba53730afb1b061e260995d625b 100644 (file)
@@ -170,6 +170,8 @@ TextPanel::TextPanel (ContentPanel* p, TextType t)
        _y_scale->SetRange (10, 1000);
        _line_spacing->SetRange (10, 1000);
 
+       content_selection_changed ();
+
        _reference->Bind                (wxEVT_CHECKBOX, boost::bind (&TextPanel::reference_clicked, this));
        _use->Bind                      (wxEVT_CHECKBOX, boost::bind (&TextPanel::use_toggled, this));
        _type->Bind                     (wxEVT_CHOICE,   boost::bind (&TextPanel::type_changed, this));
index 666c65bd4569945a5a48d5a9b6d58e7bb9375213..410ec4699acdf530e7ff1821dda5143fd7b46fce 100644 (file)
@@ -247,6 +247,8 @@ VideoPanel::VideoPanel (ContentPanel* p)
        _frame_type->wrapped()->Append (_("3D left only"));
        _frame_type->wrapped()->Append (_("3D right only"));
 
+       content_selection_changed ();
+
        _fade_in->Changed.connect (boost::bind (&VideoPanel::fade_in_changed, this));
        _fade_out->Changed.connect (boost::bind (&VideoPanel::fade_out_changed, this));