From bcc4ab301f286a8e096dda277732c6749af31b1b Mon Sep 17 00:00:00 2001
From: Christian Kandeler <christian.kandeler@theqtcompany.com>
Date: Wed, 8 Apr 2015 17:01:01 +0200
Subject: [PATCH] ProjectExplorer: Fix FolderNode::addNewInformation().

We should use the actual display name of the node there, not some
hardcoded value.

Task-number: QTCREATORBUG-14240
Change-Id: Idf0fc4cdaab52d7f838d3d48d834a89b55ee593f
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
---
 src/plugins/projectexplorer/projectnodes.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp
index 800ccfc9425..beea4f8ae75 100644
--- a/src/plugins/projectexplorer/projectnodes.cpp
+++ b/src/plugins/projectexplorer/projectnodes.cpp
@@ -367,7 +367,7 @@ bool FolderNode::renameFile(const QString &filePath, const QString &newFilePath)
 FolderNode::AddNewInformation FolderNode::addNewInformation(const QStringList &files, Node *context) const
 {
     Q_UNUSED(files);
-    return AddNewInformation(path().fileName(), context == this ? 120 : 100);
+    return AddNewInformation(displayName(), context == this ? 120 : 100);
 }
 
 /*!
-- 
GitLab