mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Merge pull request #1628 from javierllorente/sendlink
Fix sendLink() on main menu. Closes #1625
This commit is contained in:
commit
f1a6499b07
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user