Try and fix the worker.

This commit is contained in:
ArsenArsen 2017-07-15 13:28:04 +02:00
parent 0d58d67a3c
commit 55669aabe4
1 changed files with 1 additions and 0 deletions

View File

@ -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();