┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Fella <[email protected]>2022-02-04 00:18:00 +0100
committerNicolas Fella <[email protected]>2022-02-04 00:18:00 +0100
commit3b4676b3871cad5cd0e4695b211581f8db8accd0 (patch)
tree59a7c7f96dab52189827b495b0f6285f4ae3b057
parent43e915213e64f03d785c87cc5cf8db1c6b86a1a2 (diff)
Fix opening FTP files in their preferred app
When passing an URL like ftp://foo/bar.txt OpenUrlJob opens it in the default handler for ftp urls, not the one for txt files, which would be more appropriate here By passing along the mimetype we can change that behavior to what we want BUG: 443253
-rw-r--r--src/dolphinviewcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index 5520bf794..70e473601 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -649,7 +649,7 @@ void DolphinViewContainer::slotItemActivated(const KFileItem& item)
return;
}
- KIO::OpenUrlJob *job = new KIO::OpenUrlJob(item.targetUrl());
+ KIO::OpenUrlJob *job = new KIO::OpenUrlJob(item.targetUrl(), item.mimetype());
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->setShowOpenOrExecuteDialog(true);
job->start();