diff --git a/src/infoplugins/generic/snorenotify/SnoreNotifyPlugin.cpp b/src/infoplugins/generic/snorenotify/SnoreNotifyPlugin.cpp index bb9263b77..c312811df 100644 --- a/src/infoplugins/generic/snorenotify/SnoreNotifyPlugin.cpp +++ b/src/infoplugins/generic/snorenotify/SnoreNotifyPlugin.cpp @@ -59,7 +59,7 @@ SnoreNotifyPlugin::SnoreNotifyPlugin() } 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(); m_snore->setPrimaryNotificationBackend(); @@ -103,6 +103,12 @@ SnoreNotifyPlugin::pushInfo( Tomahawk::InfoSystem::InfoPushData pushData ) if ( !TomahawkSettings::instance()->songChangeNotificationEnabled() ) return; + if( m_snore->primaryNotificationBackend().isNull() ) + { + tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "no notification backend set"; + return; + } + switch ( pushData.type ) {