Verified Commit 592f01cf 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 2c42d27f
......@@ -191,7 +191,7 @@ void RunnerResultsModel::setQueryString(const QString &queryString)
m_hasMatches = false;
if (queryString.isEmpty()) {
clear();
} else {
} else if (!queryString.trimmed().isEmpty()) {
m_resetTimer.start();
m_manager->launchQuery(queryString, m_runner);
setQuerying(true);
......
Markdown is supported
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