moved load function to main thread

This commit is contained in:
itsmattkc
2018-12-22 08:57:51 +11:00
parent 74d343522d
commit 90d9c46a93
+3 -3
View File
@@ -621,8 +621,6 @@ void LoadThread::run() {
}
if (cont) {
panel_project->add_recent_project(project_url);
emit success(); // run in main thread
for (int i=0;i<loaded_media_items.size();i++) {
@@ -665,7 +663,9 @@ void LoadThread::success_func() {
counter++;
}
mainWindow->updateTitle(orig_filename);
}
} else {
panel_project->add_recent_project(project_url);
}
mainWindow->setWindowModified(autorecovery);
if (open_seq != NULL) set_sequence(open_seq);