projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3680fe0
)
Try to stop strange subtitle area displays by preventing re-entrancy to try_to_load_a...
author
Carl Hetherington
<cth@carlh.net>
Wed, 26 Aug 2020 09:40:47 +0000
(11:40 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 26 Aug 2020 09:40:47 +0000
(11:40 +0200)
src/wx/text_panel.cc
patch
|
blob
|
history
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 ();
}