summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rosca <[email protected]>2016-12-20 08:57:18 +0100
committerDavid Rosca <[email protected]>2016-12-20 12:30:11 +0100
commit825e64edc9820ead23187bae1bc017a22424d0d1 (patch)
tree74d74d496d5280040f2b5c5e8330ae30e8ed278d
parentfbab032d122e42b0fe80004b4c03bac5f77161c2 (diff)
Fix comparing pa_cvolume objects
pa_cvolume_equal returns 1 when true, 0 otherwise BUG: 373943 Differential Revision: https://phabricator.kde.org/D3753
-rw-r--r--src/volumeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volumeobject.h b/src/volumeobject.h
index 5824391..c5b39de 100644
--- a/src/volumeobject.h
+++ b/src/volumeobject.h
@@ -49,7 +49,7 @@ public:
m_muted = info->mute;
emit mutedChanged();
}
- if (pa_cvolume_equal(&m_volume, &info->volume) != 0) {
+ if (!pa_cvolume_equal(&m_volume, &info->volume)) {
m_volume = info->volume;
emit volumeChanged();
emit channelVolumesChanged();