mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
simplify + add todo (early commit to make room for the next kdebase-wide commit)
svn path=/trunk/KDE/kdebase/apps/; revision=684300
This commit is contained in:
parent
67563a41a1
commit
0661c42dd9
|
@ -465,18 +465,11 @@ void DolphinView::triggerItem(const QModelIndex& index)
|
|||
return;
|
||||
}
|
||||
|
||||
// Prefer the local path over the URL. This assures that the
|
||||
// volume space information is correct. Assuming that the URL is media:/sda1,
|
||||
// and the local path is /windows/C: For the URL the space info is related
|
||||
// to the root partition (and hence wrong) and for the local path the space
|
||||
// info is related to the windows partition (-> correct).
|
||||
const QString localPath(item->localPath());
|
||||
KUrl url;
|
||||
if (localPath.isEmpty()) {
|
||||
url = item->url();
|
||||
} else {
|
||||
url = localPath;
|
||||
}
|
||||
// The stuff below should be moved to ViewContainer and be just a signal?
|
||||
|
||||
// Prefer the local path over the URL.
|
||||
bool isLocal;
|
||||
KUrl url = item->mostLocalUrl(isLocal);
|
||||
|
||||
if (item->isDir()) {
|
||||
setUrl(url);
|
||||
|
|
Loading…
Reference in a new issue