Correctly update when there is no selected DCP track.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Aug 2018 09:25:21 +0000 (10:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Aug 2018 09:25:21 +0000 (10:25 +0100)
src/wx/text_panel.cc

index ef604f787579671e6a5853c40197b1ed7b1d636f..9922f4e7025c673da754a12bc215c739e0272263 100644 (file)
@@ -210,7 +210,7 @@ TextPanel::update_dcp_track_selection ()
                ++n;
        }
 
-       if (many) {
+       if (!selected || many) {
                _dcp_track->SetSelection (wxNOT_FOUND);
        }
 }
@@ -325,6 +325,7 @@ TextPanel::film_content_changed (int property)
                        _type->SetSelection (0);
                }
                setup_sensitivity ();
+               update_dcp_track_selection ();
        } else if (property == TextContentProperty::BURN) {
                checked_set (_burn, text ? text->burn() : false);
        } else if (property == TextContentProperty::X_OFFSET) {