1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Improved "Go to web address" action.

- newlines are stripped from string

closes #379
This commit is contained in:
nowrep 2012-04-14 10:54:03 +02:00
parent 99722aa7aa
commit 431782a147

View File

@ -816,7 +816,8 @@ void WebView::createSelectedTextContextMenu(QMenu* menu, const QWebHitTestResult
connect(dictact, SIGNAL(middleClicked()), this, SLOT(openUrlInBackgroundTab()));
menu->addAction(dictact);
QString selectedString = selectedText.trimmed();
// #379: Remove newlines
QString selectedString = selectedText.trimmed().remove("\n");
if (!selectedString.contains(".")) {
// Try to add .com
selectedString.append(".com");