Make Konqueror and Dolphin use the new KFileItem::targetUrl() method.

svn path=/trunk/KDE/kdebase/apps/; revision=782396
This commit is contained in:
Norbert Frese 2008-03-05 00:17:53 +00:00
parent 488ab56d0a
commit 7a1992e86b
2 changed files with 2 additions and 4 deletions

View file

@ -273,7 +273,7 @@ void DolphinPart::slotItemTriggered(const KFileItem& item)
} else { } else {
// Left button. [Right button goes to slotOpenContextMenu before triggered can be emitted] // Left button. [Right button goes to slotOpenContextMenu before triggered can be emitted]
kDebug() << "LMB"; kDebug() << "LMB";
emit m_extension->openUrlRequest(item.url(), args, browserArgs); emit m_extension->openUrlRequest(item.targetUrl(), args, browserArgs);
} }
} }

View 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. KUrl url = item.targetUrl();
bool isLocal;
KUrl url = item.mostLocalUrl(isLocal);
if (item.isDir()) { if (item.isDir()) {
m_view->setUrl(url); m_view->setUrl(url);