diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-12-03 08:15:44 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-12-03 14:42:07 +0100 |
commit | 0a7109126051fa13e6f2e27845897792a2ba24cb (patch) | |
tree | f715507b636bb772750b3c23dbcb4f1ec4c4c691 /src/plugins/clearcase | |
parent | a3f30b3d1712fb22180a89c5a6a128823c80fb79 (diff) | |
download | qt-creator-0a7109126051fa13e6f2e27845897792a2ba24cb.tar.gz |
Limit cdUp to root
Task-number: QTCREATORBUG-10860
Change-Id: I22550b4415e07cac0d78f36595dc7ee781a837c0
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/clearcase')
-rw-r--r-- | src/plugins/clearcase/clearcaseplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp index e36b644f02..dd78679704 100644 --- a/src/plugins/clearcase/clearcaseplugin.cpp +++ b/src/plugins/clearcase/clearcaseplugin.cpp @@ -230,7 +230,7 @@ QString ClearCasePlugin::getDriveLetterOfPath(const QString &directory) { // cdUp until we get just the drive letter QDir dir(directory); - while (dir.cdUp()) + while (!dir.isRoot() && dir.cdUp()) { } return dir.path(); |