Commit c0891411 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Folder View] Follow targetUrl() instead of url()

This makes it consistent with Dolphin which, when cd'ing into a folder on desktop:/ actually opens
/home/foo/Desktop/path (the target URL set by the KIO)

Differential Revision: https://phabricator.kde.org/D5234
parent 989df001
......@@ -665,9 +665,8 @@ void FolderModel::cd(int row)
if (file.hasLinkType()) {
setUrl(file.readUrl());
}
}
else {
setUrl(item.url().toString());
} else {
setUrl(item.targetUrl().toString());
}
}
}
......@@ -1294,7 +1293,7 @@ QVariant FolderModel::data(const QModelIndex& index, int role) const
}
}
return item.url();
return item.targetUrl();
} else if (role == SizeRole) {
bool isDir = data(index, IsDirRole).toBool();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment