From: Carl Hetherington Date: Wed, 26 Aug 2020 09:40:47 +0000 (+0200) Subject: Try to stop strange subtitle area displays by preventing re-entrancy to try_to_load_a... X-Git-Tag: v2.15.99~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=a8c230896e536b09068cfc3433047f34ef3f825f Try to stop strange subtitle area displays by preventing re-entrancy to try_to_load_analysis (#1813). --- diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 0f84664a8..a2ae72ac9 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -781,6 +781,10 @@ TextPanel::outline_subtitles_changed () void TextPanel::try_to_load_analysis () { + if (_loading_analysis) { + return; + } + _loading_analysis = true; setup_sensitivity (); _analysis.reset (); @@ -879,6 +883,7 @@ TextPanel::analysis_finished () return; } + _loading_analysis = false; try_to_load_analysis (); }