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>
This commit is contained in:
Christian Kandeler
2015-04-08 17:01:01 +02:00
parent db48c49af9
commit bcc4ab301f

View File

@@ -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);
}
/*!