mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
make sure we have a backend set
This commit is contained in:
@@ -59,7 +59,7 @@ SnoreNotifyPlugin::SnoreNotifyPlugin()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(!m_snore->setPrimaryNotificationBackend( backend ))
|
if( !m_snore->setPrimaryNotificationBackend( backend ) )
|
||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Ivalid or unavailible Snore backend: " << backend << " availible backens: " << m_snore->notificationBackends();
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Ivalid or unavailible Snore backend: " << backend << " availible backens: " << m_snore->notificationBackends();
|
||||||
m_snore->setPrimaryNotificationBackend();
|
m_snore->setPrimaryNotificationBackend();
|
||||||
@@ -103,6 +103,12 @@ SnoreNotifyPlugin::pushInfo( Tomahawk::InfoSystem::InfoPushData pushData )
|
|||||||
if ( !TomahawkSettings::instance()->songChangeNotificationEnabled() )
|
if ( !TomahawkSettings::instance()->songChangeNotificationEnabled() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if( m_snore->primaryNotificationBackend().isNull() )
|
||||||
|
{
|
||||||
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "no notification backend set";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
switch ( pushData.type )
|
switch ( pushData.type )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user