summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-07 17:42:11 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-07 17:42:11 +0800
commite04036b24aef79b9b7eb370c35c9f7b8ade77846 (patch)
tree3a3855d902a1f6f13c36ae2c82bcb5ff9b05635a /controller.cxx
parent129d7c1a7962e3552983e11593f764906994f1dc (diff)
The worker cannot have a parent
because it has to be moved to a different thread
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx
index 4962072..7f8d2a0 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -4,7 +4,7 @@
Controller::Controller(QObject* parent) : QObject{parent}
{
- Worker* worker = new Worker{parent};
+ Worker* worker = new Worker;
worker->moveToThread(&thread);
connect(&thread, &QThread::finished, worker, &QObject::deleteLater);