summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-06-20 15:32:33 -0400
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-06-24 10:38:52 +0200
commitd9b9e456b8f04f1086b3eb42783e0c9344329676 (patch)
tree88ce5df446aec128a6ede19ecbad4f3fd271f577
parent6de45d07b8382c80dd0ebab993b8e0cadaac4338 (diff)
downloadqbs-d9b9e456b8f04f1086b3eb42783e0c9344329676.tar.gz
Fix PathProbe.fileName.
The property was shadowed by a local variable and thus always undefined. Change-Id: Ic8993269a74bea6776b54237afe408b69f77ce7c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r--share/qbs/imports/qbs/probes/PathProbe.qbs8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/qbs/imports/qbs/probes/PathProbe.qbs b/share/qbs/imports/qbs/probes/PathProbe.qbs
index 59efd2426..05f27ad16 100644
--- a/share/qbs/imports/qbs/probes/PathProbe.qbs
+++ b/share/qbs/imports/qbs/probes/PathProbe.qbs
@@ -36,11 +36,11 @@ Probe {
for (i = 0; i < _names.length; ++i) {
for (var j = 0; j < _paths.length; ++j) {
for (var k = 0; k < _suffixes.length; ++k) {
- var fileName = FileInfo.joinPaths(_paths[j], _suffixes[k], _names[i]);
- if (File.exists(fileName)) {
+ var _filePath = FileInfo.joinPaths(_paths[j], _suffixes[k], _names[i]);
+ if (File.exists(_filePath)) {
found = true;
path = FileInfo.joinPaths(_paths[j], _suffixes[k]);
- filePath = fileName;
+ filePath = _filePath;
fileName = _names[i];
return;
}
@@ -49,5 +49,7 @@ Probe {
}
found = false;
path = undefined;
+ filePath = undefined;
+ fileName = undefined;
}
}