]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Cheat a bit with the root item: give it the view URL, rather than the dirlister url
authorDavid Faure <faure@kde.org>
Sat, 14 Nov 2009 01:51:08 +0000 (01:51 +0000)
committerDavid Faure <faure@kde.org>
Sat, 14 Nov 2009 01:51:08 +0000 (01:51 +0000)
(e.g. because KDirLister now resolves symlinks)
CCBUG: 213799

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

src/dolphinpart.cpp

index fbaa6fe49bbfff9441f1ebd502455d9a6906017b..34569eeb5d6fd77cbf757b6fb50e3aa3f934420d 100644 (file)
@@ -358,6 +358,8 @@ void DolphinPart::slotOpenContextMenu(const KFileItem& _item,
         item = m_dirLister->rootItem();
         if (item.isNull())
             item = KFileItem( S_IFDIR, (mode_t)-1, url() );
+        else
+            item.setUrl(url()); // ensure we use the view url, not the canonical path (#213799)
     }
 
     // TODO: We should change the signature of the slots (and signals) for being able