1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00
This commit is contained in:
Javier Llorente 2015-03-19 23:22:05 +01:00
parent 8d7cfb0e2a
commit 44af6ef806

View File

@ -38,6 +38,7 @@
#include <QStatusBar>
#include <QWebEnginePage>
#include <QMenuBar>
#include <QDesktopServices>
#ifdef Q_OS_MAC
extern void qt_mac_set_dock_menu(QMenu* menu);
@ -175,9 +176,8 @@ void MainMenu::savePageScreen()
void MainMenu::sendLink()
{
if (m_window) {
m_window->weView()->savePageAs();
}
const QUrl mailUrl = QUrl::fromEncoded("mailto:%20?body=" + QUrl::toPercentEncoding(m_window->weView()->url().toEncoded()) + "&subject=" + QUrl::toPercentEncoding(m_window->weView()->title()));
QDesktopServices::openUrl(mailUrl);
}
void MainMenu::printPage()