forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user