mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
LocationCompleter: Fix removing search shortcut from search string
Closes #2573
This commit is contained in:
parent
b3d2bd1f5f
commit
c2a730e9f4
|
@ -298,15 +298,12 @@ LoadRequest LocationCompleter::createLoadRequest(const QModelIndex &index)
|
|||
const auto action = LocationBar::loadAction(m_originalText);
|
||||
switch (action.type) {
|
||||
case LocationBar::LoadAction::Url:
|
||||
case LocationBar::LoadAction::Search:
|
||||
request = action.loadRequest;
|
||||
break;
|
||||
case LocationBar::LoadAction::Bookmark:
|
||||
bookmark = action.bookmark;
|
||||
break;
|
||||
case LocationBar::LoadAction::Search:
|
||||
searchEngine = action.searchEngine;
|
||||
searchString = m_originalText;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user