Skip to content

Commit

Permalink
Merge pull request #5723 from Abel032/Fix-update-folder-delay
Browse files Browse the repository at this point in the history
Fix update folder delay
  • Loading branch information
RodneyBaker authored Jan 24, 2025
2 parents a5fb227 + 050ceb0 commit 8d75b6c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions toonz/sources/toonz/filebrowsermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1212,17 +1212,20 @@ DvDirModelNode *DvDirModelRootNode::getNodeByPath(const TFilePath &path) {

// it could be a network folder
if (m_networkNode) {
for (i = 0; i < m_networkNode->getChildCount(); i++) {
DvDirModelNode *node = m_networkNode->getChild(i)->getNodeByPath(path);
if (node) return node;
}

// try to find in the network
QString pathStr = path.getQString();
if ((pathStr.startsWith("\\\\") || pathStr.startsWith("//")) &&
QDir(pathStr).exists()) {
DvDirModelNode *node = m_networkNode->createNetworkFolderNode(path);
if (node) return node;
if (pathStr.startsWith("\\\\") || pathStr.startsWith("//")) {

for (i = 0; i < m_networkNode->getChildCount(); i++) {
DvDirModelNode *node = m_networkNode->getChild(i)->getNodeByPath(path);
if (node) return node;
}

// try to find in the network
if (QDir(pathStr).exists()) {
DvDirModelNode *node = m_networkNode->createNetworkFolderNode(path);
if (node) return node;
}

}
}

Expand Down

0 comments on commit 8d75b6c

Please sign in to comment.