Commit d056df2c authored by Tobias Hunger's avatar Tobias Hunger

ProjectNodes: Fix crash in FolderNode::addFileFilter()

Task-number: QTCREATORBUG-18160
Change-Id: I1b8fe9f949ca9aa04858321317ebb13eb01236ab
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 9bb80c0e
......@@ -630,7 +630,8 @@ void FolderNode::setIcon(const QIcon &icon)
QString FolderNode::addFileFilter() const
{
return parentFolderNode()->addFileFilter();
FolderNode *fn = parentFolderNode();
return fn ? fn->addFileFilter() : QString();
}
bool FolderNode::supportsAction(ProjectAction action, Node *node) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment