diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-26 11:40:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-26 11:40:47 +0200 |
| commit | a8c230896e536b09068cfc3433047f34ef3f825f (patch) | |
| tree | ba215119124285ed1c076929b9114b616950ceef | |
| parent | 3680fe0cf714f1bf47b5b6d348813ebb1cdd50f2 (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.cc | 5 |
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 (); } |
