Changed root index of file system model to prevent lagging UI if network folders are missing
This commit is contained in:
@@ -216,6 +216,7 @@ struct MainWindowPrivate
|
||||
QFileSystemModel* m = new QFileSystemModel(w);
|
||||
m->setRootPath(QDir::currentPath());
|
||||
w->setModel(m);
|
||||
w->setRootIndex(m->index(QDir::currentPath()));
|
||||
ads::CDockWidget* DockWidget = new ads::CDockWidget(QString("Filesystem %1")
|
||||
.arg(FileSystemCount++));
|
||||
DockWidget->setWidget(w);
|
||||
|
||||
Reference in New Issue
Block a user