]> cloud.milkyroute.net Git - dolphin.git/commitdiff
- Don't show the name of the file in the "Path" column
authorPeter Penz <peter.penz19@gmail.com>
Fri, 8 Oct 2010 19:32:55 +0000 (19:32 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 8 Oct 2010 19:32:55 +0000 (19:32 +0000)
- Also provide a path for non-local URLs

svn path=/trunk/KDE/kdebase/apps/; revision=1183939

src/views/dolphinmodel.cpp

index 137274e0dffa7e12572568578ce3ed5e15807c72..e0796cae428e76ab6e6c03743a3c754dcc6207bf 100644 (file)
@@ -104,8 +104,7 @@ QVariant DolphinModel::data(const QModelIndex& index, int role) const
         case DolphinModel::LocalPathOrUrl:
             const KDirModel *dirModel = qobject_cast<const KDirModel*>(index.model());
             const KFileItem item = dirModel->itemForIndex(index);
-            return item.localPath();
-            break;
+            return item.url().directory();
         }
         break;