Skip to content
Snippets Groups Projects
Commit b4c4ca0b authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Client error handling - ALSA error

If an error occured at startup when opening an audio device --> notification
parent c4ffacd6
No related branches found
No related tags found
No related merge requests found
...@@ -451,6 +451,9 @@ ManagerImpl::initRegisterAccounts() ...@@ -451,6 +451,9 @@ ManagerImpl::initRegisterAccounts()
} }
iter++; iter++;
} }
// calls the client notification here in case of errors at startup...
if( _audiodriver -> getErrorMessage() != "" )
notifyErrClient( _audiodriver -> getErrorMessage() );
return true; return true;
} }
...@@ -1419,8 +1422,10 @@ ManagerImpl::setRingtoneChoice( const std::string& tone ) ...@@ -1419,8 +1422,10 @@ ManagerImpl::setRingtoneChoice( const std::string& tone )
void void
ManagerImpl::notifyErrClient( const std::string& errMsg ) ManagerImpl::notifyErrClient( const std::string& errMsg )
{ {
if( _dbus ) {
_debug("Call notifyErrClient: %s\n" , errMsg.c_str()); _debug("Call notifyErrClient: %s\n" , errMsg.c_str());
if( _dbus ) _dbus -> getConfigurationManager() -> errorAlert( errMsg , 0 ); _dbus -> getConfigurationManager() -> errorAlert( errMsg , 0 );
}
} }
int int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment