summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-26 11:40:47 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-26 11:40:47 +0200
commita8c230896e536b09068cfc3433047f34ef3f825f (patch)
treeba215119124285ed1c076929b9114b616950ceef
parent3680fe0cf714f1bf47b5b6d348813ebb1cdd50f2 (diff)
Try to stop strange subtitle area displays by preventing re-entrancy to try_to_load_analysis (#1813).
-rw-r--r--src/wx/text_panel.cc5
1 files changed, 5 insertions, 0 deletions
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 ();
}