forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.9'
Change-Id: I801042a53ae4d02d1891ea582ca9ea89b00d3181
This commit is contained in:
@@ -132,7 +132,7 @@ bool QmakePriFileNode::supportsAction(ProjectAction action, const Node *node) co
|
||||
break;
|
||||
}
|
||||
case ProjectType::SubDirsTemplate:
|
||||
if (action == AddSubProject || action == RemoveSubProject || action == AddExistingProject)
|
||||
if (action == AddSubProject || action == AddExistingProject)
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
@@ -344,6 +344,13 @@ bool QmakeProFileNode::includedInExactParse() const
|
||||
return pro && pro->includedInExactParse();
|
||||
}
|
||||
|
||||
bool QmakeProFileNode::supportsAction(ProjectAction action, const Node *node) const
|
||||
{
|
||||
if (action == RemoveSubProject)
|
||||
return parentProjectNode() && !parentProjectNode()->asContainerNode();
|
||||
return QmakePriFileNode::supportsAction(action, node);
|
||||
}
|
||||
|
||||
FolderNode::AddNewInformation QmakeProFileNode::addNewInformation(const QStringList &files, Node *context) const
|
||||
{
|
||||
Q_UNUSED(files)
|
||||
|
||||
Reference in New Issue
Block a user