mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56: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()));
|
connect(dictact, SIGNAL(middleClicked()), this, SLOT(openUrlInBackgroundTab()));
|
||||||
menu->addAction(dictact);
|
menu->addAction(dictact);
|
||||||
|
|
||||||
QString selectedString = selectedText.trimmed();
|
// #379: Remove newlines
|
||||||
|
QString selectedString = selectedText.trimmed().remove("\n");
|
||||||
if (!selectedString.contains(".")) {
|
if (!selectedString.contains(".")) {
|
||||||
// Try to add .com
|
// Try to add .com
|
||||||
selectedString.append(".com");
|
selectedString.append(".com");
|
||||||
|
Loading…
Reference in New Issue
Block a user