diff options
author | hjk <hjk@qt.io> | 2019-05-28 16:55:43 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-09-11 12:46:10 +0000 |
commit | ddf0dd87344d68e1f9a768c188c43fc4aa80b7bf (patch) | |
tree | a79c6096606c45de89680023875c6c71da8e3284 /src/plugins/projectexplorer/projectmodels.cpp | |
parent | bf6fd00163dab09cef4fa50ed126bd016023eca7 (diff) | |
download | qt-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.cpp | 2 |
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()); }; |