Merge pull request #1158 from lordadamson/loadSceneCrash
fix #1156 which causes program to crash when expanding history
This commit is contained in:
commit
14f0fd28bb
|
@ -1631,7 +1631,7 @@ void DvDirTreeView::getExpandedPathsRecursive(const QModelIndex &index,
|
|||
void DvDirTreeView::onExpanded(const QModelIndex &index) {
|
||||
QStringList paths;
|
||||
getExpandedPathsRecursive(index, paths);
|
||||
paths.removeFirst();
|
||||
if (paths.size()) paths.removeFirst();
|
||||
MyFileSystemWatcher::instance()->addPaths(paths);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue