forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.7'
Conflicts: doc/src/debugger/qtquick-debugger-example.qdoc Change-Id: If9a6ac2db76773c50aae26c5156e6aa2603329b3
This commit is contained in:
@@ -145,8 +145,12 @@ public:
|
||||
|
||||
QString tmpDir = dir;
|
||||
const QChar slash = QLatin1Char('/');
|
||||
while (tmpDir.count() >= topLevel.count() && tmpDir.count() > 0) {
|
||||
while (tmpDir.count() >= topLevel.count() && !tmpDir.isEmpty()) {
|
||||
m_cachedMatches.insert(tmpDir, newInfo);
|
||||
// if no vc was found, this might mean we're inside a repo internal directory (.git)
|
||||
// Cache only input directory, not parents
|
||||
if (!vc)
|
||||
break;
|
||||
const int slashPos = tmpDir.lastIndexOf(slash);
|
||||
if (slashPos >= 0)
|
||||
tmpDir.truncate(slashPos);
|
||||
|
||||
Reference in New Issue
Block a user