Skip to content

Commit

Permalink
Fix incorrect string comparison in check wheter we are responsible fo…
Browse files Browse the repository at this point in the history
…r a file

Fixes: #8732
  • Loading branch information
TheOneRing committed Jun 25, 2021
1 parent 60eaa79 commit c63c0dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/8732
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Correctly handle file path comparison on Windows

We fixed a bug in which a change in the casing og the sync root made the client
ignore changes in it.

https://github.com/owncloud/client/issues/8732
2 changes: 1 addition & 1 deletion src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ int Folder::slotWipeErrorBlacklist()

void Folder::slotWatchedPathChanged(const QString &path, ChangeReason reason)
{
if (!path.startsWith(this->path())) {
if (!FileSystem::isChildPathOf(path, this->path())) {
qCDebug(lcFolder) << "Changed path is not contained in folder, ignoring:" << path;
return;
}
Expand Down

0 comments on commit c63c0dc

Please sign in to comment.