From f2e90df722dff94a4c6d4aea5de17cfdce7f061f Mon Sep 17 00:00:00 2001 From: torger Date: Wed, 20 Nov 2013 13:45:03 +0100 Subject: [PATCH] Additional fix for issue 2042 (handling batch queue failures) --- rtgui/batchqueue.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index 2ed7055e8..6e5fd79da 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -885,6 +885,17 @@ void BatchQueue::redrawNeeded (LWButton* button) { void BatchQueue::error (Glib::ustring msg) { + BatchQueueEntry* current = static_cast(fd[0]); + if (processing && processing->processing) { + // restore failed thumb + BatchQueueButtonSet* bqbs = new BatchQueueButtonSet (processing); + bqbs->setButtonListener (this); + processing->addButtonSet (bqbs); + processing->processing = false; + processing->job = rtengine::ProcessingJob::create(processing->filename, processing->thumbnail->getType() == FT_Raw, processing->params); + processing = NULL; + redraw (); + } if (listener) { NLParams* params = new NLParams; params->listener = listener;