From c2a730e9f401cc7bcb5413393f7ec3b574ecc659 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 27 Jan 2018 08:30:14 +0100 Subject: [PATCH] LocationCompleter: Fix removing search shortcut from search string Closes #2573 --- src/lib/navigation/completer/locationcompleter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/navigation/completer/locationcompleter.cpp b/src/lib/navigation/completer/locationcompleter.cpp index 6e11882f5..339715728 100644 --- a/src/lib/navigation/completer/locationcompleter.cpp +++ b/src/lib/navigation/completer/locationcompleter.cpp @@ -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; }