From 526309fed7ff7d73fa6dea6c5fc1c51e41d8b0b3 Mon Sep 17 00:00:00 2001 From: jwoithe Date: Fri, 26 Apr 2013 12:50:19 +0000 Subject: [PATCH] matrixmixer: the 'value is not 0' construct does not appear to prevent execution of the conditional statements when value is numerically equal to 0 (at least not when called from refreshValues()). Going with '!=0' seems to work though so we'll run with that. git-svn-id: svn+ssh://ffado.org/ffado/trunk@2306 2be59082-3212-0410-8809-b0798e1608f0 --- libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py b/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py index 3cfbea65..4c55c65a 100644 --- a/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py +++ b/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py @@ -192,8 +192,8 @@ class MixerNode(QtGui.QAbstractSlider): p.drawText(rect, Qt.Qt.AlignLeft|Qt.Qt.AlignTop, QtCore.QString.fromUtf8(" ϕ")) def internalValueChanged(self, value): - log.debug("MixerNode.internalValueChanged( %i )" % value) - if value is not 0: + #log.debug("MixerNode.internalValueChanged( %i )" % value) + if value != 0: dB = 20 * math.log10(value / math.pow(2,14)) if self.spinbox.value() is not dB: self.spinbox.setValue(dB) -- 2.11.4.GIT