forked from qt-creator/qt-creator
ProjectExplorer::New File Use addNewInformation also for context menu
So that the resourcenode can steal from it's parent Change-Id: I97a21d94c0ddb0d217c48fd69dc808446763837b Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -341,10 +341,10 @@ bool FolderNode::renameFile(const QString &filePath, const QString &newFilePath)
|
||||
return false;
|
||||
}
|
||||
|
||||
FolderNode::AddNewInformation FolderNode::addNewInformation(const QStringList &files) const
|
||||
FolderNode::AddNewInformation FolderNode::addNewInformation(const QStringList &files, Node *context) const
|
||||
{
|
||||
Q_UNUSED(files);
|
||||
return AddNewInformation(QFileInfo(path()).fileName(), 100);
|
||||
return AddNewInformation(QFileInfo(path()).fileName(), context == this ? 120 : 100);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user