Hello community, here is the log from the commit of package libfm-qt for openSUSE:Leap:15.2 checked in at 2020-02-06 21:36:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/libfm-qt (Old) and /work/SRC/openSUSE:Leap:15.2/.libfm-qt.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfm-qt" Thu Feb 6 21:36:31 2020 rev:18 rq:763937 version:0.14.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/libfm-qt/libfm-qt.changes 2020-01-15 15:20:56.958426811 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.libfm-qt.new.26092/libfm-qt.changes 2020-02-06 21:36:33.344108287 +0100 @@ -1,0 +2,6 @@ +Sun Jan 5 13:22:07 UTC 2020 - Namor Barcode <guta...@gmail.com> + +- Add patch "fix_query_cancellation_error.patch" from upstream, + fixed harmless pop-up error message (See https://github.com/lxqt/pcmanfm-qt/issues/1041) + +------------------------------------------------------------------- New: ---- fix_query_cancellation_error.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfm-qt.spec ++++++ --- /var/tmp/diff_new_pack.fIUHVl/_old 2020-02-06 21:36:33.816108487 +0100 +++ /var/tmp/diff_new_pack.fIUHVl/_new 2020-02-06 21:36:33.828108492 +0100 @@ -26,6 +26,9 @@ Source: https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz Source1: https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source2: libfm-qt.keyring +# Fixed in upstream https://github.com/lxqt/libfm-qt/commit/4b7896836e868f069009e65ab75051ab64a1d583 +# Drop the patch after new version release. +Patch0: fix_query_cancellation_error.patch BuildRequires: cmake >= 3.1.0 # Needs private headers, see xdndworkaround.cpp BuildRequires: libQt5Gui-private-headers-devel @@ -75,6 +78,7 @@ %prep %setup -q +%patch0 -p1 %build %cmake -DPULL_TRANSLATIONS=No ++++++ fix_query_cancellation_error.patch ++++++ >From 4b7896836e868f069009e65ab75051ab64a1d583 Mon Sep 17 00:00:00 2001 From: Tsu Jan <tsujan2...@gmail.com> Date: Fri, 6 Dec 2019 02:53:33 +0330 Subject: [PATCH] Set info query cancellation error to mild in dir list job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/lxqt/pcmanfm-qt/issues/1041 For some reason, that error may happen with MTP, in which case, pcmanfm-qt shouldn't show an annoying and useless error message (pcmanfm-qt only shows errors with severalties greater than `ErrorSeverity::MILD`). Moreover, if it happens in another case, the message will be useless — although I haven't encountered it without MTP. SIDE NOTE: The current patch can be seen as the followup of an old patch, which fixed a similar issue: https://github.com/lxqt/libfm-qt/commit/670d80631b20f74eec9ffc984baf12c353398783 --- src/core/dirlistjob.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/dirlistjob.cpp b/src/core/dirlistjob.cpp index d3058b1..5a7bba4 100644 --- a/src/core/dirlistjob.cpp +++ b/src/core/dirlistjob.cpp @@ -30,7 +30,9 @@ void DirListJob::exec() { false }; if(!dir_inf) { - ErrorAction act = emitError(err, ErrorSeverity::MODERATE); + ErrorAction act = emitError(err, err.domain() == G_IO_ERROR && err.code() == G_IO_ERROR_CANCELLED + ? ErrorSeverity::MILD // may happen with MTP + : ErrorSeverity::MODERATE); if(act == ErrorAction::RETRY) { err.reset(); goto _retry;