src: replaced references to NODE_FILE with call to isFile

This commit is contained in:
mlangkabel
2017-12-07 14:52:12 +01:00
parent b02596ddfa
commit 91b0c5d05f
9 changed files with 34 additions and 13 deletions
@@ -503,7 +503,7 @@ std::string BookmarkController::getNodeDisplayName(const Id nodeId) const
NodeType type = m_storageAccess->getNodeTypeForNodeWithId(nodeId);
NameHierarchy nameHierarchy = m_storageAccess->getNameHierarchyForNodeId(nodeId);
if (type.getType() == NodeType::NODE_FILE)
if (type.isFile())
{
return FilePath(nameHierarchy.getQualifiedName()).fileName();
}