File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/lightdm-deepin-greeter Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1209,6 +1209,11 @@ void GreeterWorker::prepareShutdownSound()
1209
1209
{
1210
1210
QDBusInterface soundPlayerInter (" org.deepin.dde.SoundThemePlayer1" , " /org/deepin/dde/SoundThemePlayer1" ,
1211
1211
" org.deepin.dde.SoundThemePlayer1" , QDBusConnection::systemBus ());
1212
- soundPlayerInter.call (" PrepareShutdownSound" , static_cast <int >(m_model->currentUser ()->uid ()));
1212
+ 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()));
1213
1218
}
1214
1219
#endif
You can’t perform that action at this time.
0 commit comments