Wrong if condition to mute kmix

This commit is contained in:
Albert Vaca 2014-04-12 21:41:38 +02:00
parent baa0e5ff95
commit de252af3a6

View file

@ -76,8 +76,8 @@ bool PauseMusicPlugin::receivePackage(const NetworkPackage& np)
if (pauseConditionFulfilled) {
if (use_mute) {
QDBusInterface kmixInterface("org.kde.kmix", "/kmix/KMixWindow/actions/mute", "org.qtproject.Qt.QAction");
if (isKMixMuted()) {
pausedSources.insert("mute");
if (!isKMixMuted()) {
pausedSources.insert("mute"); //Fake source
kmixInterface.call("trigger");
}
} else {