Folder Wizard: warn when adding a folder which is the parent of a sync'ed folder

issue #7741
This commit is contained in:
Olivier Goffart 2020-11-27 10:03:32 +01:00 committed by Kevin Ottens
parent 13c9d6431d
commit b7193e6a0e
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -454,6 +454,8 @@ bool FolderWizardRemotePath::isComplete() const
warnStrings.append(tr("This folder is already being synced."));
} else if (dir.startsWith(curDir)) {
warnStrings.append(tr("You are already syncing <i>%1</i>, which is a parent folder of <i>%2</i>.").arg(Utility::escape(curDir), Utility::escape(dir)));
} else if (curDir.startsWith(dir)) {
warnStrings.append(tr("You are already syncing <i>%1</i>, which is a subfolder of <i>%2</i>.").arg(Utility::escape(curDir), Utility::escape(dir)));
}
}