Fix failed to open trash://
This commit is contained in:
parent
becd1c3e39
commit
683f5a28b1
1 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ void FolderModel::setUrl(const QString &url)
|
|||
}
|
||||
|
||||
// TODO: selected ?
|
||||
if (info.isFile()) {
|
||||
if (info.isFile() && !url.startsWith("trash:///")) {
|
||||
resolvedNewUrl = QUrl::fromLocalFile(info.dir().path());
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,7 @@ void FolderModel::setUrl(const QString &url)
|
|||
m_pathHistory.append(resolvedNewUrl);
|
||||
|
||||
beginResetModel();
|
||||
m_url = resolvedNewUrl.toLocalFile();
|
||||
m_url = resolvedNewUrl.toString();
|
||||
m_dirModel->dirLister()->openUrl(resolvedNewUrl);
|
||||
clearDragImages();
|
||||
m_dragIndexes.clear();
|
||||
|
|
Loading…
Reference in a new issue