Skip to content

Commit

Permalink
Folder Wizard: warn when adding a folder which is the parent of a syn…
Browse files Browse the repository at this point in the history
…c'ed folder

issue #7741
  • Loading branch information
ogoffart committed Feb 19, 2020
1 parent 9b6ebe8 commit f90bad4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/7741
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Add Folder Sync Connection sometimes does not warn

Warn when adding a folder sync connection of a remote folder
for which a subdir is already synchronized

https://github.com/owncloud/client/issues/7741
2 changes: 2 additions & 0 deletions src/gui/folderwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,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)));
}
}

Expand Down

0 comments on commit f90bad4

Please sign in to comment.