diff options
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx index 757d475..4962072 100644 --- a/controller.cxx +++ b/controller.cxx @@ -4,7 +4,7 @@ Controller::Controller(QObject* parent) : QObject{parent} { - Worker* worker = new Worker{}; + Worker* worker = new Worker{parent}; worker->moveToThread(&thread); connect(&thread, &QThread::finished, worker, &QObject::deleteLater); |