Merge pull request #1158 from lordadamson/loadSceneCrash

fix #1156 which causes program to crash when expanding history
This commit is contained in:
Jeremy Bullock 2017-05-23 22:03:40 -06:00 committed by GitHub
commit 14f0fd28bb

View file

@ -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);
}