projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Try to stop strange subtitle area displays by preventing re-entrancy to try_to_load_a...
[dcpomatic.git]
/
src
/
wx
/
text_panel.cc
diff --git
a/src/wx/text_panel.cc
b/src/wx/text_panel.cc
index 0f84664a8878c67bc82c3ad0e49b80c925d5a0d8..a2ae72ac9d469e782b6f4222485a874b8b78f563 100644
(file)
--- 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 ();
}