Commit 97b2e77c authored by con's avatar con
Browse files

Fix crash when completely removing a file type from pro file.

The wrong category folder (like Sources/Headers) would be deleted from
the project tree, because all category folders had the same path.
The nodes' path is used everywhere for performance optimization.
parent 5aa65b12
......@@ -404,7 +404,7 @@ void Qt4PriFileNode::update(ProFile *includeFile, ProFileReader *reader)
InternalNode *subfolder = new InternalNode;
subfolder->type = type;
subfolder->icon =;
subfolder->fullName = m_projectDir;
subfolder->fullName = m_projectDir + '#' +;
contents.subnodes.insert(, subfolder);
// create the hierarchy with subdirectories
subfolder->create(m_projectDir, newFilePaths, type);
Supports Markdown
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