1
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:
David Rosca 2018-01-27 08:30:14 +01:00
parent b3d2bd1f5f
commit c2a730e9f4
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -298,15 +298,12 @@ LoadRequest LocationCompleter::createLoadRequest(const QModelIndex &index)
const auto action = LocationBar::loadAction(m_originalText); const auto action = LocationBar::loadAction(m_originalText);
switch (action.type) { switch (action.type) {
case LocationBar::LoadAction::Url: case LocationBar::LoadAction::Url:
case LocationBar::LoadAction::Search:
request = action.loadRequest; request = action.loadRequest;
break; break;
case LocationBar::LoadAction::Bookmark: case LocationBar::LoadAction::Bookmark:
bookmark = action.bookmark; bookmark = action.bookmark;
break; break;
case LocationBar::LoadAction::Search:
searchEngine = action.searchEngine;
searchString = m_originalText;
break;
default: default:
break; break;
} }