Fix crash on opening project with subfolders, real issue still investigated

CCBUG: 357572
parent 0bc3942b
......@@ -1025,6 +1025,9 @@ void Bin::slotLoadFolders(QMap<QString,QString> foldersData)
if (parentFolder == m_rootFolder) {
// parent folder not yet created, create unnamed placeholder
parentFolder = new ProjectFolder(parentId, QString(), parentFolder);
} else if (parentFolder == NULL) {
// Strange, folder without parent detected, create standard one
parentFolder = new ProjectFolder(parentId, i18n("Folder"), m_rootFolder);
// parent was found, create our folder
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