From: <tr...@ff...> - 2009-09-18 21:02:12
|
Author: arnonym Date: 2009-09-18 14:01:58 -0700 (Fri, 18 Sep 2009) New Revision: 1669 Modified: trunk/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py Log: some cleanup I forgot. Modified: trunk/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py =================================================================== --- trunk/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2009-09-18 21:00:59 UTC (rev 1668) +++ trunk/libffado/support/mixer-qt4/ffado/widgets/crossbarrouter.py 2009-09-18 21:01:58 UTC (rev 1669) @@ -112,13 +112,11 @@ self.vu.updateLevel(value) def disconnectRoute(self, checked): - log.debug("disconnectRoute( %s ) sender: %s" % (str(checked),str(self.sender()))) + log.debug("disconnectRoute( %s )" % str(checked)) dest = self.interface.getDestinationIndex(self.outname) src = self.interface.getSourceName( self.interface.getSourceForDestination( dest ) ) #log.debug(" source=%s destination=%s possible? %s" % (src, self.outname, self.interface.canConnectNamed(src, self.outname))) - if not self.interface.setConnectionStateNamed(src, self.outname, False): - log.debug(" Changing the connection table was successfull.") - else: + if self.interface.setConnectionStateNamed(src, self.outname, False): log.warning(" Failed to change the connection table!") self.peakValue(0) @@ -149,7 +147,6 @@ self.addAction(action) idx = self.interface.getDestinationIndex(self.outname) sourceidx = self.interface.getSourceForDestination(idx) - #print self.interface.getConnectionState(sourceidx, idx) source = self.interface.getSourceName(sourceidx) self.lock = True for action in self.actions(): |