From 55669aabe4e5a018d6ffb7e717455d95823cd141 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Sat, 15 Jul 2017 13:28:04 +0200 Subject: [PATCH] Try and fix the worker. --- worker/worker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/worker/worker.cpp b/worker/worker.cpp index 598ab68..457bdb6 100644 --- a/worker/worker.cpp +++ b/worker/worker.cpp @@ -13,6 +13,7 @@ QMutex Worker::lock; // 1. Convert the image to the right format // 2. Consume the image. void Worker::queue(WorkerContext *context) { + init(); QMutexLocker ml(&lock); _WorkerContext *c = new _WorkerContext; c->image = context->pixmap.toImage();