From a8c230896e536b09068cfc3433047f34ef3f825f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Aug 2020 11:40:47 +0200 Subject: [PATCH] Try to stop strange subtitle area displays by preventing re-entrancy to try_to_load_analysis (#1813). --- src/wx/text_panel.cc | 5 +++++ 1 file changed, 5 insertions(+) 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 (); } -- 2.30.2