diff options
| author | Méven Car <[email protected]> | 2025-10-20 13:52:10 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2025-10-22 08:40:04 +0000 |
| commit | 09ab10e145a4747a174482014a619bdd429d48ce (patch) | |
| tree | f85a38f6f553aac2ab5221c0563caf1c5fe3d297 /src | |
| parent | 832141776a88607179cc7aa487a1d86baacface9 (diff) | |
dolphinviewcontainer: in middle-click file opening use targetUrl
as file url to open, as does `slotItemActivated`.
Allows to open files using the middle click, with protocols using `UDS_TARGET_URL` such as
recentlyused://.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 3f8d7d71e..ede584157 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -797,7 +797,7 @@ void DolphinViewContainer::slotfileMiddleClickActivated(const KFileItem &item) auto service = services.at(indexOfAppToOpenFileWith); KIO::ApplicationLauncherJob *job = new KIO::ApplicationLauncherJob(service, this); - job->setUrls({item.url()}); + job->setUrls({item.targetUrl()}); job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this)); connect(job, &KIO::OpenUrlJob::finished, this, &DolphinViewContainer::slotOpenUrlFinished); |
