generic: adjust to KToolInvocation changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-12 15:12:41 +03:00
parent 3ee6dded37
commit 28952ca264
2 changed files with 7 additions and 8 deletions

View file

@ -135,13 +135,12 @@ void KateMailFilesPluginView::slotMail()
} // check selected docs done
if ( ! urls.count() )
return;
KToolInvocation::self()->invokeMailer(
QString(), // to
QString(), // cc
QString(), // subject
QString(), // body
urls // urls to atthatch
);
KUrl mailtourl;
mailtourl.setScheme("mailto");
foreach (const QString &url, urls) {
mailtourl.addQueryItem("attach", url);
}
KToolInvocation::self()->invokeMailer(mailtourl.url());
}
// kate: space-indent on; indent-width 2; replace-tabs on;

View file

@ -195,7 +195,7 @@ void KCrashModule::slotReport()
const QString kcrashreporturl = knotification->property("_k_url").toString();
knotification->close();
if (kcrashreporturl.startsWith(QLatin1String("mailto:"))) {
KToolInvocation::self()->invokeMailer(kcrashreporturl, QString::fromLatin1("Crash report"));
KToolInvocation::self()->invokeMailer(kcrashreporturl);
} else {
KToolInvocation::self()->invokeBrowser(kcrashreporturl);
}