Revert "Re-sync immediatly after "Keep files" when all files were removed"

This causes infinite sync loops

This reverts commit 8b469d3992.
This commit is contained in:
Olivier Goffart 2014-05-15 19:29:40 +02:00
parent adfb163593
commit f40a054cb7
2 changed files with 4 additions and 3 deletions

View file

@ -689,9 +689,6 @@ void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction direction, bool *
*cancel = msgBox.clickedButton() == keepBtn;
if (*cancel) {
wipe();
_lastEtag = QString();
// speed up next sync
FolderMan::instance()->slotScheduleSync(_alias);
}
#endif
}

View file

@ -395,6 +395,10 @@ void FolderMan::slotScheduleSync( const QString& alias )
{
if( alias.isEmpty() ) return;
if( _currentSyncFolder == alias ) {
qDebug() << " the current folder is currently syncing.";
return;
}
qDebug() << "Schedule folder " << alias << " to sync!";
if( ! _scheduleQueue.contains(alias ) && _folderMap.contains(alias) ) {