Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/dconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,20 +398,29 @@ class Q_DECL_HIDDEN DBusBackend : public DConfigBackend
auto reply = config->isDefaultValue(key);
reply.waitForFinished();
if (reply.isError()) {
qWarning() << "Wrong when calling `isDefaultValue`, key:" << key << ", error message:" << reply.error().message();
qWarning() << "Failed to call `isDefaultValue`, key:" << key
<< ", error message:" << reply.error().message();
return false;
}
return reply.value();
}

virtual void setValue(const QString &key, const QVariant &value) override
{
config->setValue(key, QDBusVariant(value));
auto reply = config->setValue(key, QDBusVariant(value));
reply.waitForFinished();
if (reply.isError())
qCWarning(cfLog) << "Failed to setValue for the key:" << key
<< ", error message:" << reply.error();
}

virtual void reset(const QString &key) override
{
config->reset(key);
auto reply = config->reset(key);
reply.waitForFinished();
if (reply.isError())
qCWarning(cfLog) << "Failed to reset for the key:" << key
<< ", error message:" << reply.error();
}

virtual QString name() const override
Expand Down