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 } // check selected docs done
if ( ! urls.count() ) if ( ! urls.count() )
return; return;
KToolInvocation::self()->invokeMailer( KUrl mailtourl;
QString(), // to mailtourl.setScheme("mailto");
QString(), // cc foreach (const QString &url, urls) {
QString(), // subject mailtourl.addQueryItem("attach", url);
QString(), // body }
urls // urls to atthatch KToolInvocation::self()->invokeMailer(mailtourl.url());
);
} }
// kate: space-indent on; indent-width 2; replace-tabs on; // 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(); const QString kcrashreporturl = knotification->property("_k_url").toString();
knotification->close(); knotification->close();
if (kcrashreporturl.startsWith(QLatin1String("mailto:"))) { if (kcrashreporturl.startsWith(QLatin1String("mailto:"))) {
KToolInvocation::self()->invokeMailer(kcrashreporturl, QString::fromLatin1("Crash report")); KToolInvocation::self()->invokeMailer(kcrashreporturl);
} else { } else {
KToolInvocation::self()->invokeBrowser(kcrashreporturl); KToolInvocation::self()->invokeBrowser(kcrashreporturl);
} }