Slightly improve content control sensitivity.
authorCarl Hetherington <cth@carlh.net>
Tue, 21 May 2013 22:40:24 +0000 (23:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 21 May 2013 22:40:24 +0000 (23:40 +0100)
src/wx/film_editor.cc
src/wx/film_editor.h

index 3a1fb232bbef4038b313fdfda4118ffe95dd5625..80d069ae5b799f8dc506d3f356351440b21926eb 100644 (file)
@@ -831,7 +831,7 @@ FilmEditor::set_things_sensitive (bool s)
 
        setup_subtitle_control_sensitivity ();
        setup_show_audio_sensitivity ();
-       setup_content_button_sensitivity ();
+       setup_content_sensitivity ();
 }
 
 /** Called when the `Edit filters' button has been clicked */
@@ -1098,11 +1098,11 @@ FilmEditor::content_remove_clicked (wxCommandEvent &)
 void
 FilmEditor::content_selection_changed (wxListEvent &)
 {
-        setup_content_button_sensitivity ();
+        setup_content_sensitivity ();
 }
 
 void
-FilmEditor::setup_content_button_sensitivity ()
+FilmEditor::setup_content_sensitivity ()
 {
         _content_add->Enable (_generally_sensitive);
 
@@ -1110,6 +1110,10 @@ FilmEditor::setup_content_button_sensitivity ()
 
         _content_remove->Enable (selection && _generally_sensitive);
        _content_timeline->Enable (_generally_sensitive);
+
+       _video_panel->Enable (selection && _generally_sensitive);
+       _audio_panel->Enable (selection && _generally_sensitive);
+       _subtitle_panel->Enable (selection && _generally_sensitive);
 }
 
 shared_ptr<Content>
index ec563cf8257e600f17f7b413d9afbedb94541871..6238aadc6ee6c5ff6cbe567abf23e0525912816d 100644 (file)
@@ -105,7 +105,7 @@ private:
        void setup_main_notebook_size ();
        void setup_content ();
        void setup_container ();
-       void setup_content_button_sensitivity ();
+       void setup_content_sensitivity ();
        void setup_loop_sensitivity ();
        void setup_content_properties ();