Skip to content

Commit

Permalink
fix: Locked PropertiesChanged signal emit error
Browse files Browse the repository at this point in the history
dbus send is error, lead to Locked PropertiesChanged not send

Log:
  • Loading branch information
dengbo11 committed Jan 24, 2024
1 parent 08bcea3 commit 3bb34d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dde-session/impl/sessionmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,9 @@ void SessionManager::emitLockChanged(bool locked)
QVariantMap changedProps;
changedProps.insert("Locked", locked);
arguments.push_back(changedProps);
arguments.push_back(QStringList());
msg.setArguments(arguments);
QDBusConnection::connectToBus(QDBusConnection::SessionBus, "org.deepin.dde.SessionManager1").send(msg);
QDBusConnection::sessionBus().send(msg);
}

void SessionManager::emitStageChanged(int state)
Expand Down

0 comments on commit 3bb34d8

Please sign in to comment.