mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
Make Konqueror and Dolphin use the new KFileItem::targetUrl() method.
svn path=/trunk/KDE/kdebase/apps/; revision=782396
This commit is contained in:
parent
488ab56d0a
commit
7a1992e86b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue