mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[Webview] Use https for Google Translate. Closes #1331
This commit is contained in:
parent
9f395a5d03
commit
6eeebd1866
|
@ -1137,7 +1137,7 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const QWebHitTestResult
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
|
||||||
QString langCode = mApp->currentLanguage().left(2).toUtf8();
|
QString langCode = mApp->currentLanguage().left(2).toUtf8();
|
||||||
QUrl googleTranslateUrl = QUrl(QString("http://translate.google.com/#auto/%1/%2").arg(langCode, selectedText));
|
QUrl googleTranslateUrl = QUrl(QString("https://translate.google.com/#auto/%1/%2").arg(langCode, selectedText));
|
||||||
Action* gtwact = new Action(QIcon(":icons/sites/translate.png"), tr("Google Translate"));
|
Action* gtwact = new Action(QIcon(":icons/sites/translate.png"), tr("Google Translate"));
|
||||||
gtwact->setData(googleTranslateUrl);
|
gtwact->setData(googleTranslateUrl);
|
||||||
connect(gtwact, SIGNAL(triggered()), this, SLOT(openUrlInSelectedTab()));
|
connect(gtwact, SIGNAL(triggered()), this, SLOT(openUrlInSelectedTab()));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user