From 6eeebd18667ea07d6653cf6f5a243ea6fe90ecb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Pejakovi=C4=87?= Date: Fri, 9 May 2014 18:25:17 +0200 Subject: [PATCH] [Webview] Use https for Google Translate. Closes #1331 --- src/lib/webkit/webview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/webkit/webview.cpp b/src/lib/webkit/webview.cpp index c56017d1f..07282cf79 100644 --- a/src/lib/webkit/webview.cpp +++ b/src/lib/webkit/webview.cpp @@ -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()));