projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d4393
)
Fix crash with no Film.
author
Carl Hetherington
<cth@carlh.net>
Wed, 7 Oct 2015 13:47:46 +0000
(14:47 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 9 Oct 2015 12:44:55 +0000
(13:44 +0100)
src/lib/job.cc
patch
|
blob
|
history
diff --git
a/src/lib/job.cc
b/src/lib/job.cc
index 91581eb49550db343718606c5ede43ab249f6774..42d6160c773b4f744fcabaa8576063093795041c 100644
(file)
--- a/
src/lib/job.cc
+++ b/
src/lib/job.cc
@@
-322,12
+322,12
@@
Job::error_summary () const
void
Job::set_error (string s, string d)
{
- LOG_ERROR_NC (s);
- LOG_ERROR_NC (d);
-
if (_film) {
+ LOG_ERROR_NC (s);
+ LOG_ERROR_NC (d);
_film->log()->log (String::compose ("Error in job: %1 (%2)", s, d), Log::TYPE_ERROR);
}
+
boost::mutex::scoped_lock lm (_state_mutex);
_error_summary = s;
_error_details = d;