From 729c74379afe799ee1a729d0db51b3304b2f5f73 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 28 Feb 2019 17:19:18 +0100 Subject: ProjectExplorer: Merge Node::isFileNodeType and asFileNode They were identifying the same set of nodes. Change-Id: I3316cbc434ff740547bcf0baf9e5f1544f6e3f56 Reviewed-by: Christian Kandeler --- src/plugins/modeleditor/pxnodeutilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/modeleditor') diff --git a/src/plugins/modeleditor/pxnodeutilities.cpp b/src/plugins/modeleditor/pxnodeutilities.cpp index 861f05bd91..cfd071aac7 100644 --- a/src/plugins/modeleditor/pxnodeutilities.cpp +++ b/src/plugins/modeleditor/pxnodeutilities.cpp @@ -66,7 +66,7 @@ void PxNodeUtilities::setDiagramSceneController(qmt::DiagramSceneController *dia QString PxNodeUtilities::calcRelativePath(const ProjectExplorer::Node *node, const QString &anchorFolder) { - const QString nodePath = node->isFileNodeType() + const QString nodePath = node->asFileNode() ? node->filePath().toFileInfo().path() : node->filePath().toString(); -- cgit v1.2.1