diff options
| author | Jakob Petsovits <[email protected]> | 2023-05-12 16:56:36 -0400 |
|---|---|---|
| committer | Jakob Petsovits <[email protected]> | 2023-05-12 16:56:36 -0400 |
| commit | 1b0caf69a845d0a68c3d8d1a6bdf98568a673501 (patch) | |
| tree | c67f1558a531f4f5f3358320d52b1436c35af85a /src/dolphinviewcontainer.cpp | |
| parent | ac1f8131f9defa2e949804dc621f082b069c0e4b (diff) | |
Remove deprecated, ifdef'd code for old KIO versions
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 2dc366129..57b443eb4 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -22,12 +22,7 @@ #endif #include <KFileItemActions> #include <KFilePlacesModel> -#include <kio_version.h> -#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0) #include <KIO/JobUiDelegateFactory> -#else -#include <KIO/JobUiDelegate> -#endif #include <KIO/OpenUrlJob> #include <KLocalizedString> #include <KMessageWidget> @@ -724,11 +719,7 @@ void DolphinViewContainer::slotItemActivated(const KFileItem &item) } KIO::OpenUrlJob *job = new KIO::OpenUrlJob(item.targetUrl(), item.mimetype()); -#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0) job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this)); -#else - job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this)); -#endif job->setShowOpenOrExecuteDialog(true); connect(job, &KIO::OpenUrlJob::finished, this, &DolphinViewContainer::slotOpenUrlFinished); job->start(); |
