summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectmodels.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-05-28 16:55:43 +0200
committerhjk <hjk@qt.io>2019-09-11 12:46:10 +0000
commitddf0dd87344d68e1f9a768c188c43fc4aa80b7bf (patch)
treea79c6096606c45de89680023875c6c71da8e3284 /src/plugins/projectexplorer/projectmodels.cpp
parentbf6fd00163dab09cef4fa50ed126bd016023eca7 (diff)
downloadqt-creator-ddf0dd87344d68e1f9a768c188c43fc4aa80b7bf.tar.gz
Utils: Add a FilePath::isDir() convenience function
Change-Id: I1df0ee1b136299ae6e4f2e5bd0bdc24bfeca33dd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectmodels.cpp')
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index 523cc458d3..5fe63fefe9 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -623,7 +623,7 @@ bool FlatModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int r
// Node weirdness: Sometimes the "file path" is a directory, sometimes it's a file...
const auto dirForProjectNode = [](const ProjectNode *pNode) {
const FilePath dir = pNode->filePath();
- if (dir.toFileInfo().isDir())
+ if (dir.isDir())
return dir;
return FilePath::fromString(dir.toFileInfo().path());
};