mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-15 18:01:11 +00:00
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
This commit is contained in:
parent
43e915213e
commit
3b4676b387
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue