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 (pauseConditionFulfilled) {
if (use_mute) { if (use_mute) {
QDBusInterface kmixInterface("org.kde.kmix", "/kmix/KMixWindow/actions/mute", "org.qtproject.Qt.QAction"); QDBusInterface kmixInterface("org.kde.kmix", "/kmix/KMixWindow/actions/mute", "org.qtproject.Qt.QAction");
if (isKMixMuted()) { if (!isKMixMuted()) {
pausedSources.insert("mute"); pausedSources.insert("mute"); //Fake source
kmixInterface.call("trigger"); kmixInterface.call("trigger");
} }
} else { } else {