We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ffc900 commit e10e61aCopy full SHA for e10e61a
src/lightdm-deepin-greeter/greeterworker.cpp
@@ -1209,6 +1209,11 @@ void GreeterWorker::prepareShutdownSound()
1209
{
1210
QDBusInterface soundPlayerInter("org.deepin.dde.SoundThemePlayer1", "/org/deepin/dde/SoundThemePlayer1",
1211
"org.deepin.dde.SoundThemePlayer1", QDBusConnection::systemBus());
1212
- soundPlayerInter.call("PrepareShutdownSound", static_cast<int>(m_model->currentUser()->uid()));
+ if (!soundPlayerInter.isValid() || !m_model->currentUser()) {
1213
+ qCWarning(DDE_SHELL) << "Sound player interface is not valid or current user is null:" << soundPlayerInter.isValid();
1214
+ return;
1215
+ }
1216
+
1217
+ //soundPlayerInter.call("PrepareShutdownSound", static_cast<int>(m_model->currentUser()->uid()));
1218
}
1219
#endif
0 commit comments