Commit 72d116ba authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

ClearCase: Fix detection when file is opened from vob root

Change-Id: I480ea1f1f73ce80b75d428a4fd16501eda539529
Reviewed-by: default avatarKnut Petter Svendsen <knutpett@pvv.org>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent f0817081
......@@ -381,7 +381,8 @@ QString ClearCasePlugin::ccManagesDirectory(const QString &directory) const
foreach (const QString &relativeVobDir, vobs) {
const QString vobPath = QDir::cleanPath(rootDir + QDir::fromNativeSeparators(relativeVobDir));
const bool isManaged = Utils::FileName::fromString(directory).isChildOf(Utils::FileName::fromString(vobPath));
const bool isManaged = (vobPath == directory)
|| Utils::FileName::fromString(directory).isChildOf(Utils::FileName::fromString(vobPath));
if (isManaged)
return vobPath;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment