projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6c4b4f
)
Cleanup: move variable assignment that happens in every branch.
author
Carl Hetherington
<cth@carlh.net>
Thu, 16 Mar 2023 00:48:44 +0000
(
01:48
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 16 Mar 2023 21:45:19 +0000
(22:45 +0100)
src/wx/text_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/text_panel.cc
b/src/wx/text_panel.cc
index fa039dbde111f50111993a26de2232eca814b001..2fdcbb51f5d03733abdbce3d9950d5c1ad089acd 100644
(file)
--- a/
src/wx/text_panel.cc
+++ b/
src/wx/text_panel.cc
@@
-886,9
+886,10
@@
TextPanel::clear_outline_subtitles ()
void
TextPanel::analysis_finished ()
{
+ _loading_analysis = false;
+
auto content = _analysis_content.lock ();
if (!content) {
- _loading_analysis = false;
setup_sensitivity ();
return;
}
@@
-899,12
+900,10
@@
TextPanel::analysis_finished ()
*/
error_dialog (_parent->window(), _("Could not analyse subtitles."));
clear_outline_subtitles ();
- _loading_analysis = false;
setup_sensitivity ();
return;
}
- _loading_analysis = false;
try_to_load_analysis ();
}