Changeset 2306

Show
Ignore:
Timestamp:
04/26/13 05:50:19 (11 years ago)
Author:
jwoithe
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py

    r2305 r2306  
    193193 
    194194    def internalValueChanged(self, value): 
    195         log.debug("MixerNode.internalValueChanged( %i )" % value) 
    196         if value is not 0: 
     195        #log.debug("MixerNode.internalValueChanged( %i )" % value) 
     196        if value != 0: 
    197197            dB = 20 * math.log10(value / math.pow(2,14)) 
    198198            if self.spinbox.value() is not dB: