Wizard: Improve folder creation (2)

This commit is contained in:
Markus Goetz 2017-04-10 16:15:28 +02:00
parent 5f316f8b96
commit 26af3ce525
2 changed files with 2 additions and 2 deletions

View file

@ -313,10 +313,9 @@ void AccountSettings::slotFolderWizardAccepted()
tr("<p>Could not create local folder <i>%1</i>.")
.arg(QDir::toNativeSeparators(definition.localPath)));
return;
} else {
FileSystem::setFolderMinimumPermissions(definition.localPath);
}
}
FileSystem::setFolderMinimumPermissions(definition.localPath);
}
/* take the value from the definition of already existing folders. All folders have

View file

@ -911,6 +911,7 @@ void Folder::slotAboutToRemoveAllFiles(SyncFileItem::Direction dir, bool *cancel
}
*cancel = msgBox.clickedButton() == keepBtn;
if (*cancel) {
FileSystem::setFolderMinimumPermissions(path());
journalDb()->clearFileTable();
_lastEtag.clear();
slotScheduleThisFolder();