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

ClearCase: Fix detection when file is opened from vob root

Change-Id: I480ea1f1f73ce80b75d428a4fd16501eda539529
Reviewed-by: default avatarKnut Petter Svendsen <>
Reviewed-by: default avatarTobias Hunger <>
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;
Supports Markdown
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