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:
parent
99722aa7aa
commit
431782a147
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user