Make sure to restart sync after folder add.

This commit is contained in:
Klaas Freitag 2013-02-20 16:06:46 +01:00
parent fd83bf2089
commit 136b699106
2 changed files with 8 additions and 5 deletions

View File

@ -706,6 +706,7 @@ void Application::slotAddFolder()
qDebug() << "* Folder wizard cancelled";
}
_folderMan->setSyncEnabled(true);
_folderMan->slotScheduleAllFolders();
}
void Application::slotOpenStatus()

View File

@ -370,15 +370,17 @@ void FolderMan::slotScheduleSync( const QString& alias )
qDebug() << "Schedule folder " << alias << " to sync!";
if( _currentSyncFolder == alias ) {
// the current folder is currently syncing.
return;
}
if( _scheduleQueue.contains( alias ) ) {
qDebug() << " II> Sync for folder " << alias << " already scheduled, do not enqueue!";
if( ! _scheduleQueue.contains(alias )) {
_scheduleQueue.append(alias);
} else {
_scheduleQueue.append( alias );
slotScheduleFolderSync();
qDebug() << " II> Sync for folder " << alias << " already scheduled, do not enqueue!";
}
slotScheduleFolderSync();
}
void FolderMan::setSyncEnabled( bool enabled )