]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make Konqueror and Dolphin use the new KFileItem::targetUrl() method.
authorNorbert Frese <nf2@scheinwelt.at>
Wed, 5 Mar 2008 00:17:53 +0000 (00:17 +0000)
committerNorbert Frese <nf2@scheinwelt.at>
Wed, 5 Mar 2008 00:17:53 +0000 (00:17 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=782396

src/dolphinpart.cpp
src/dolphinviewcontainer.cpp

index 9ed69bddfbac3297aa2787bf98245271268ca440..aa1bb6d7c419f3da13ff34ba68291fd6a3e5a60a 100644 (file)
@@ -273,7 +273,7 @@ void DolphinPart::slotItemTriggered(const KFileItem& item)
     } else {
         // Left button. [Right button goes to slotOpenContextMenu before triggered can be emitted]
         kDebug() << "LMB";
     } else {
         // Left button. [Right button goes to slotOpenContextMenu before triggered can be emitted]
         kDebug() << "LMB";
-        emit m_extension->openUrlRequest(item.url(), args, browserArgs);
+        emit m_extension->openUrlRequest(item.targetUrl(), args, browserArgs);
     }
 }
 
     }
 }
 
index 47fd01eaf92b9ecd4751f2ea2109d60e71a7fef9..237aa19f50e621caaeb19f0439939f22a7f59359 100644 (file)
@@ -392,9 +392,7 @@ void DolphinViewContainer::saveRootUrl(const KUrl& url)
 
 void DolphinViewContainer::slotItemTriggered(const KFileItem& item)
 {
 
 void DolphinViewContainer::slotItemTriggered(const KFileItem& item)
 {
-    // Prefer the local path over the URL.
-    bool isLocal;
-    KUrl url = item.mostLocalUrl(isLocal);
+    KUrl url = item.targetUrl();
 
     if (item.isDir()) {
         m_view->setUrl(url);
 
     if (item.isDir()) {
         m_view->setUrl(url);