From 3912dba33afe322c9e9a5461faa9fcba3065f16c Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 20 Dec 2016 11:43:39 +0100 Subject: [PATCH] Move qDeclareMetatype from Folder to SyncEngine --- src/gui/folder.cpp | 3 --- src/libsync/syncengine.cpp | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) 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('/')));