Skip to content

Commit

Permalink
fix: cloud sync dbus error
Browse files Browse the repository at this point in the history
修复云同步连接错误

Log:
  • Loading branch information
myml committed Jul 24, 2024
1 parent c40ff7d commit caae9fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions calendar-service/src/dbus/dunioniddbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@

#include "dunioniddbus.h"
#include "commondef.h"
#include <QLoggingCategory>

DUnionIDDbus::DUnionIDDbus(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
: QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
{
if (!this->isValid()) {
auto reply = this->SwitcherDump();
reply.waitForFinished();
if (!reply.isValid()) {
qCWarning(ServiceLogger) << "Error connecting remote object, service:" << this->service() << ",path:" << this->path() << ",interface" << this->interface();
qCWarning(ServiceLogger) << this->lastError();

qCWarning(ServiceLogger) << reply.error();
} else {
qCInfo(ServiceLogger) << "connected remote object, service:" << this->service() << ",path:" << this->path() << ",interface" << this->interface();
qCInfo(ServiceLogger) << "switcher dump" << reply.value();
}
}

Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dde-calendar (5.14.1) unstable; urgency=medium

* fix: cloud sync dbus error

-- myml <[email protected]> Mon, 22 Jul 2024 10:41:23 +0800

dde-calendar (5.14.0) unstable; urgency=medium

* fix: build error in uos system
Expand Down

0 comments on commit caae9fc

Please sign in to comment.