QmlJsTools: Fix compilation with Qt4

Change-Id: I76e067ec8223c42b480ad9d296cd3b7357831aab
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Nikolai Kosjar
2013-11-20 14:41:36 +01:00
parent 72db114180
commit 180e613e71

View File

@@ -952,7 +952,7 @@ void ModelManager::importScan(QFutureInterface<void> &future,
const bool libOnly = true; // FIXME remove when tested more
while (!pathsToScan.isEmpty() && !future.isCanceled()) {
ScanItem toScan = pathsToScan.last();
pathsToScan.removeLast();
pathsToScan.pop_back();
int pathBudget = (maxScanDepth + 2 - toScan.depth);
if (!scannedPaths.contains(toScan.path)) {
QStringList importedFiles;