Verified Commit df4a62c3 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix launching empty query

If the query is prefixed with a space the launched entry should not be
added to the history, in case there is nothing after the query the trimmed string would be empty.
parent f16e536d
......@@ -191,7 +191,7 @@ void RunnerResultsModel::setQueryString(const QString &queryString)
m_hasMatches = false;
if (queryString.isEmpty()) {
} else {
} else if (!queryString.trimmed().isEmpty()) {
m_manager->launchQuery(queryString, m_runner);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment