Commit a89fa00e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to OpenUrlJob

parent 961d0715
Pipeline #23659 passed with stage
in 53 minutes and 20 seconds
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
#include "archivemailagentutil.h" #include "archivemailagentutil.h"
#include "archivemailkernel.h" #include "archivemailkernel.h"
#include <KIO/OpenUrlJob>
#include <KIO/JobUiDelegate>
#include "kmail-version.h" #include "kmail-version.h"
#include <MailCommon/MailUtil> #include <MailCommon/MailUtil>
...@@ -33,7 +36,6 @@ ...@@ -33,7 +36,6 @@
#include <KConfigGroup> #include <KConfigGroup>
#include <KMessageBox> #include <KMessageBox>
#include <QMenu> #include <QMenu>
#include <KRun>
#include <KAboutData> #include <KAboutData>
namespace { namespace {
...@@ -309,8 +311,10 @@ void ArchiveMailWidget::slotOpenFolder() ...@@ -309,8 +311,10 @@ void ArchiveMailWidget::slotOpenFolder()
ArchiveMailInfo *archiveItemInfo = archiveItem->info(); ArchiveMailInfo *archiveItemInfo = archiveItem->info();
if (archiveItemInfo) { if (archiveItemInfo) {
const QUrl url = archiveItemInfo->url(); const QUrl url = archiveItemInfo->url();
KRun *runner = new KRun(url, parentWidget()); // will delete itself KIO::OpenUrlJob *job = new KIO::OpenUrlJob(url);
runner->setRunExecutables(false); job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, parentWidget()));
job->setRunExecutables(false);
job->start();
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment