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 {
// 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);
}
}

View file

@ -392,9 +392,7 @@ void DolphinViewContainer::saveRootUrl(const KUrl& url)
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);