summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-04-05 13:42:57 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-04-05 11:56:05 +0000
commit8b14373797dc92cc404a907029b1d3bb54b05120 (patch)
tree10770ce30e6b67e49a1038aa03bf6263c92c765d
parentc9e284904ae7d1e0d3358160ded766e0e46e83ca (diff)
Continue path search if the file we are looking for is not a directory
We want to check the parent directory of the file, but that is already implicit in the entryList() call, which will just return an empty list if it doesn't exist. Change-Id: I087ed4fdd6db66e6c02d8604af219c68b5280af7 Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
-rw-r--r--app/perfsymboltable.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/perfsymboltable.cpp b/app/perfsymboltable.cpp
index b54ff76..6daf0a6 100644
--- a/app/perfsymboltable.cpp
+++ b/app/perfsymboltable.cpp
@@ -160,8 +160,6 @@ static bool findInExtraPath(QFileInfo &path, const QString &fileName)
path.setFile(path.absoluteFilePath() + QDir::separator() + fileName);
if (path.isFile())
return true;
- else if (!path.isDir())
- return false;
QDir absDir = path.absoluteDir();
foreach (const QString &entry, absDir.entryList(QStringList(),