[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [discover/Plasma/5.14] libdiscover/backends/FwupdBackend: fwupd: not worth listing that there isn't 
From:       Aleix Pol <null () kde ! org>
Date:       2018-09-27 13:27:06
Message-ID: E1g5WJu-0002BJ-9P () code ! kde ! org
[Download RAW message or body]

Git commit 70ba0514a7ab01a0fd97892ad76d2511c3313ed0 by Aleix Pol.
Committed on 27/09/2018 at 13:26.
Pushed by apol into branch 'Plasma/5.14'.

fwupd: not worth listing that there isn't anything to do

M  +2    -1    libdiscover/backends/FwupdBackend/FwupdBackend.cpp

https://commits.kde.org/discover/70ba0514a7ab01a0fd97892ad76d2511c3313ed0

diff --git a/libdiscover/backends/FwupdBackend/FwupdBackend.cpp \
b/libdiscover/backends/FwupdBackend/FwupdBackend.cpp index 1806c856..abefb838 100644
--- a/libdiscover/backends/FwupdBackend/FwupdBackend.cpp
+++ b/libdiscover/backends/FwupdBackend/FwupdBackend.cpp
@@ -508,7 +508,8 @@ void FwupdBackend::refreshRemote(FwupdRemote* remote, uint \
cacheAge)  void FwupdBackend::handleError(GError **perror)
 {
     //TODO: localise the error message
-    Q_EMIT passiveMessage(QString::fromUtf8((*perror)->message));
+    if ((*perror)->code != FWUPD_ERROR_NOTHING_TO_DO)
+        Q_EMIT passiveMessage(QString::fromUtf8((*perror)->message));
     qWarning() << "Fwupd Error" << (*perror)->code << (*perror)->message;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic