mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Merge pull request #1333 from pejakm/fixgtr
[Webview] Use https for Google Translate. Closes #1331
This commit is contained in:
commit
690d67ade8
@ -1137,7 +1137,7 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const QWebHitTestResult
|
||||
menu->addSeparator();
|
||||
|
||||
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"));
|
||||
gtwact->setData(googleTranslateUrl);
|
||||
connect(gtwact, SIGNAL(triggered()), this, SLOT(openUrlInSelectedTab()));
|
||||
|
Loading…
Reference in New Issue
Block a user