┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-07-06 13:36:04 +0000
committerDavid Faure <[email protected]>2007-07-06 13:36:04 +0000
commit0661c42dd9893c67a7ceaea6585df2cf7aa3a440 (patch)
tree92ed8b51a654889c51563a39f400240d51f88d7b /src/dolphinview.cpp
parent67563a41a173293d66080a4f540912681c74925f (diff)
simplify + add todo (early commit to make room for the next kdebase-wide commit)
svn path=/trunk/KDE/kdebase/apps/; revision=684300
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 042c74b2c..4895f199c 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -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);