mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-01-30 04:49:47 +00:00
fix: check if subscription optimisation is enabled explicitly
Previous implementation has used implicit logic with empty keys arrays, which might lead to some errors in processing
This commit is contained in:
@@ -128,8 +128,8 @@ QVariant SystemInfoSource::sendDBusRequest(const QString &_destination, const QS
|
||||
|
||||
auto response = bus.call(request, QDBus::BlockWithGui, REQUEST_TIMEOUT);
|
||||
|
||||
if ((response.type() != QDBusMessage::ReplyMessage) || (response.arguments().isEmpty())) {
|
||||
qCWarning(LOG_ESS) << "Error message" << response.errorMessage();
|
||||
if (response.type() != QDBusMessage::ReplyMessage || response.arguments().isEmpty()) {
|
||||
qCWarning(LOG_ESS) << "Error" << response.errorName() << "with message" << response.errorMessage();
|
||||
return {};
|
||||
} else {
|
||||
return response.arguments().first();
|
||||
|
||||
Reference in New Issue
Block a user