From: Carl Hetherington Date: Thu, 23 Aug 2018 09:25:21 +0000 (+0100) Subject: Correctly update when there is no selected DCP track. X-Git-Tag: v2.13.45~12 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c543f2a87e037fa6cd6e89b1eb82d22a47a8b43a Correctly update when there is no selected DCP track. --- diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index ef604f787..9922f4e70 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -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) {