diff --git a/src/mirall/folderman.cpp b/src/mirall/folderman.cpp index c4a5a2e47..fa9ba1377 100644 --- a/src/mirall/folderman.cpp +++ b/src/mirall/folderman.cpp @@ -149,7 +149,6 @@ int FolderMan::setupFolders() foreach ( const QString& alias, list ) { Folder *f = setupFolderFromConfigFile( alias ); if( f ) { - registerFolderMonitor(f); slotScheduleSync(alias); emit( folderSyncStateChange( f->alias() ) ); } @@ -307,6 +306,8 @@ Folder* FolderMan::setupFolderFromConfigFile(const QString &file) { connect(folder, SIGNAL(syncFinished(SyncResult)), SLOT(slotFolderSyncFinished(SyncResult))); _folderChangeSignalMapper->setMapping( folder, folder->alias() ); + + registerFolderMonitor(folder); return folder; }