diff --git a/src/bin/patchmanager-daemon/patchmanagerobject.cpp b/src/bin/patchmanager-daemon/patchmanagerobject.cpp index 2337d8117..4408c51f2 100644 --- a/src/bin/patchmanager-daemon/patchmanagerobject.cpp +++ b/src/bin/patchmanager-daemon/patchmanagerobject.cpp @@ -1652,9 +1652,12 @@ void PatchManagerObject::doRefreshPatchList() QString path = toPatch; for (int i = 0; i < toManglePaths.size(); i++) { - if (path.startsWith(toManglePaths[i])) { + // we deal with either absolute, or "git-style" beginnings: + QString p1path = path.mid(path.indexOf('/', 1)); + if (path.startsWith(toManglePaths[i]) || p1path.startsWith(toManglePaths[i]) ) { qDebug() << Q_FUNC_INFO << "Mangle: Editing path: " << path; path.replace(toManglePaths[i], mangledPaths[i]); + qDebug() << Q_FUNC_INFO << "Mangle: Edited path: " << path; } else { qDebug() << Q_FUNC_INFO << "Mangle: not editing path: " << path; }