Fix current url

This commit is contained in:
reionwong 2021-09-27 14:56:10 +08:00
parent b0a06e944a
commit fefbe8a738

View file

@ -316,7 +316,7 @@ void FolderModel::setUrl(const QString &url)
m_pathHistory.append(resolvedNewUrl); m_pathHistory.append(resolvedNewUrl);
beginResetModel(); beginResetModel();
m_url = resolvedNewUrl.toString(); m_url = resolvedNewUrl.toString(QUrl::PreferLocalFile);
m_dirModel->dirLister()->openUrl(resolvedNewUrl); m_dirModel->dirLister()->openUrl(resolvedNewUrl);
clearDragImages(); clearDragImages();
m_dragIndexes.clear(); m_dragIndexes.clear();