1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Fixed showing "//" as receiver in Thunderbird form "Send page/link ..." actions

Instead of empty receiver address, just one space %20 is used.
This commit is contained in:
nowrep 2013-12-22 00:39:23 +01:00
parent 36bdbf00a0
commit ffd560142b

View File

@ -466,14 +466,14 @@ void WebView::openUrlInNewWindow()
void WebView::sendLinkByMail() void WebView::sendLinkByMail()
{ {
if (QAction* action = qobject_cast<QAction*>(sender())) { if (QAction* action = qobject_cast<QAction*>(sender())) {
const QUrl &mailUrl = QUrl::fromEncoded("mailto:?body=" + QUrl::toPercentEncoding(action->data().toUrl().toEncoded())); const QUrl &mailUrl = QUrl::fromEncoded("mailto:%20?body=" + QUrl::toPercentEncoding(action->data().toUrl().toEncoded()));
QDesktopServices::openUrl(mailUrl); QDesktopServices::openUrl(mailUrl);
} }
} }
void WebView::sendPageByMail() void WebView::sendPageByMail()
{ {
const QUrl &mailUrl = QUrl::fromEncoded("mailto:?body=" + QUrl::toPercentEncoding(url().toEncoded()) + "&subject=" + QUrl::toPercentEncoding(title())); const QUrl &mailUrl = QUrl::fromEncoded("mailto:%20?body=" + QUrl::toPercentEncoding(url().toEncoded()) + "&subject=" + QUrl::toPercentEncoding(title()));
QDesktopServices::openUrl(mailUrl); QDesktopServices::openUrl(mailUrl);
} }