mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: adjust to KToolInvocation changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3ee6dded37
commit
28952ca264
2 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue