mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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:
parent
36bdbf00a0
commit
ffd560142b
|
@ -466,14 +466,14 @@ void WebView::openUrlInNewWindow()
|
|||
void WebView::sendLinkByMail()
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user