Additional fix for issue 2042 (handling batch queue failures)

This commit is contained in:
torger 2013-11-20 13:45:03 +01:00
parent e530d2b0d4
commit f2e90df722

View File

@ -885,6 +885,17 @@ void BatchQueue::redrawNeeded (LWButton* button) {
void BatchQueue::error (Glib::ustring msg) {
BatchQueueEntry* current = static_cast<BatchQueueEntry*>(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;