projectloadtask: move the project to the main thread, not the task

How did this get overlooked for so damn long holy shit dude
This commit is contained in:
itsmattkc
2020-08-17 00:00:51 +10:00
parent e043976189
commit 078c54e58b
+1 -1
View File
@@ -56,7 +56,7 @@ bool ProjectLoadTask::Run()
project->Load(&reader, &layout, &IsCancelled());
// Ensure project is in main thread
moveToThread(qApp->thread());
project->moveToThread(qApp->thread());
if (!IsCancelled()) {
projects_.append(project);