Terminate sync when pausing from context menu #5290

This commit is contained in:
Christian Kamm 2016-11-07 12:49:29 +01:00
parent 6b3d0e69aa
commit 0e2782d369

View file

@ -903,6 +903,9 @@ void ownCloudGui::setPauseOnAllFoldersHelper(bool pause)
foreach (Folder* f, FolderMan::instance()->map()) {
if (accounts.contains(f->accountState())) {
f->setSyncPaused(pause);
if (pause) {
f->slotTerminateSync();
}
}
}
}