mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31: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 {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue