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()
12091209{
12101210 QDBusInterface soundPlayerInter (" org.deepin.dde.SoundThemePlayer1" , " /org/deepin/dde/SoundThemePlayer1" ,
12111211 " 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()));
12131218}
12141219#endif
You can’t perform that action at this time.
0 commit comments