diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 57e5309bd..ce02e0aa8 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -65,9 +65,6 @@ Folder::Folder(const FolderDefinition& definition, , _fileLog(new SyncRunFileLog) , _saveBackwardsCompatible(false) { - qRegisterMetaType("SyncFileItemVector"); - qRegisterMetaType("SyncFileItem::Direction"); - qsrand(QTime::currentTime().msec()); _timeSinceLastSyncStart.start(); _timeSinceLastSyncDone.start(); diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index ddf9652ca..8c6488ad8 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -78,6 +78,8 @@ SyncEngine::SyncEngine(AccountPtr account, const QString& localPath, qRegisterMetaType("SyncFileItem"); qRegisterMetaType("SyncFileItem::Status"); qRegisterMetaType("SyncFileStatus"); + qRegisterMetaType("SyncFileItemVector"); + qRegisterMetaType("SyncFileItem::Direction"); // Everything in the SyncEngine expects a trailing slash for the localPath. Q_ASSERT(localPath.endsWith(QLatin1Char('/')));