From b2f7c5f7c573712a4ff6f0068427e97f64916dce Mon Sep 17 00:00:00 2001 From: Alejandro Wainzinger Date: Tue, 8 May 2012 18:13:48 -0700 Subject: [PATCH] When listening privately, don't push Adium status updates. --- src/libtomahawk/infosystem/infoplugins/mac/AdiumPlugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/infosystem/infoplugins/mac/AdiumPlugin.cpp b/src/libtomahawk/infosystem/infoplugins/mac/AdiumPlugin.cpp index 1422eb710..0a50d1be2 100644 --- a/src/libtomahawk/infosystem/infoplugins/mac/AdiumPlugin.cpp +++ b/src/libtomahawk/infosystem/infoplugins/mac/AdiumPlugin.cpp @@ -141,6 +141,9 @@ AdiumPlugin::audioStarted( const Tomahawk::InfoSystem::PushInfoPair pushInfoPair QVariantMap map = pushInfoPair.second.toMap(); + if ( map.contains( "private" ) && map[ "private" ] == TomahawkSettings::FullyPrivate ) + return; + if ( !map.contains( "trackinfo" ) || !map[ "trackinfo" ].canConvert< Tomahawk::InfoSystem::InfoStringHash >() ) return;