Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package milou5 for openSUSE:Factory checked in at 2021-02-23 20:20:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/milou5 (Old) and /work/SRC/openSUSE:Factory/.milou5.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "milou5" Tue Feb 23 20:20:18 2021 rev:113 rq:874341 version:5.21.0 Changes: -------- --- /work/SRC/openSUSE:Factory/milou5/milou5.changes 2021-02-15 23:14:07.487200849 +0100 +++ /work/SRC/openSUSE:Factory/.milou5.new.2378/milou5.changes 2021-02-23 20:22:06.907746424 +0100 @@ -1,0 +2,6 @@ +Mon Feb 22 13:42:25 UTC 2021 - Fabian Vogt <fab...@ritter-vogt.de> + +- Add patch to avoid empty queries, which causes runners to misbehave: + * 0001-Fix-launching-empty-query.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-launching-empty-query.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ milou5.spec ++++++ --- /var/tmp/diff_new_pack.bXSkmi/_old 2021-02-23 20:22:07.523746969 +0100 +++ /var/tmp/diff_new_pack.bXSkmi/_new 2021-02-23 20:22:07.523746969 +0100 @@ -29,6 +29,8 @@ Source1: milou-%{version}.tar.xz.sig Source2: plasma.keyring %endif +# PATCH-FIX-UPSTREAM +Patch1: 0001-Fix-launching-empty-query.patch BuildRequires: extra-cmake-modules >= 1.2.0 BuildRequires: fdupes BuildRequires: kf5-filesystem ++++++ 0001-Fix-launching-empty-query.patch ++++++ >From df4a62c3d79129be7ae716455f9afb07eeace3c8 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau <alexander.loh...@gmx.de> Date: Mon, 22 Feb 2021 14:36:46 +0100 Subject: [PATCH] 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. --- lib/runnerresultsmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runnerresultsmodel.cpp b/lib/runnerresultsmodel.cpp index df7ebc9..eb4b9ee 100644 --- a/lib/runnerresultsmodel.cpp +++ b/lib/runnerresultsmodel.cpp @@ -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); -- 2.25.1