diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-06-25 11:32:31 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-06-25 15:34:10 +0300 |
commit | aa72b5240b30da5564cad61fbea2054f6ebac906 (patch) | |
tree | d0fc27944bee86120432cd6e6c458570915f62f5 /src/gui/folder.cpp | |
parent | 79815538e2eeed946b8933b3aecd73c69d6a12a3 (diff) |
Fix incorrect string comparison in check wheter we are responsible for a file
Fixes: #8732
Diffstat (limited to 'src/gui/folder.cpp')
-rw-r--r-- | src/gui/folder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 0b71069db..d4c23bfca 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -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; } |