DirModel multithread loading

pull/2/head
cutefishd 5 years ago
parent 8879e12625
commit dfa6a29907

@ -85,6 +85,7 @@ FolderModel::FolderModel(QObject *parent)
m_dirModel = new KDirModel(this);
m_dirModel->setDirLister(dirLister);
m_dirModel->setDropsAllowed(KDirModel::DropOnDirectory | KDirModel::DropOnLocalExecutable);
m_dirModel->moveToThread(qApp->thread());
m_selectionModel = new QItemSelectionModel(this, this);
connect(m_selectionModel, &QItemSelectionModel::selectionChanged, this, &FolderModel::selectionChanged);

Loading…
Cancel
Save