diff --git a/toonz/sources/toonz/filebrowsermodel.cpp b/toonz/sources/toonz/filebrowsermodel.cpp index 8fca20b1..ac1eca65 100644 --- a/toonz/sources/toonz/filebrowsermodel.cpp +++ b/toonz/sources/toonz/filebrowsermodel.cpp @@ -218,7 +218,7 @@ DvDirModelFileFolderNode *DvDirModelFileFolderNode::createNode( DvDirModelNode *parent, const TFilePath &path) { DvDirModelFileFolderNode *node; // check the project nodes under the Project Root Node - if (QString::fromStdWString(parent->getName()).startsWith("Project root") && + if (QString::fromStdWString(parent->getName()).startsWith("*") && TProjectManager::instance()->isProject(path)) node = new DvDirModelProjectNode(parent, path); else { @@ -1084,10 +1084,13 @@ void DvDirModelRootNode::refreshChildren() { int i; for (i = 0; i < (int)projectRoots.size(); i++) { TFilePath projectRoot = projectRoots[i]; - std::wstring roothDir = projectRoot.getWideString(); + std::wstring rootDir = projectRoot.getWideString(); DvDirModelSpecialFileFolderNode *projectRootNode = new DvDirModelSpecialFileFolderNode( - this, L"Project root (" + roothDir + L")", projectRoot); + this, + L"*" + projectRoot.withoutParentDir().getWideString() + + L" (" +rootDir + L")", + projectRoot); projectRootNode->setPixmap( QPixmap(generateIconPixmap("folder_project_root"))); m_projectRootNodes.push_back(projectRootNode);