From: <tr...@ff...> - 2009-06-21 20:28:07
|
Author: ppalmers Date: 2009-06-21 13:28:03 -0700 (Sun, 21 Jun 2009) New Revision: 1583 Modified: trunk/libffado/support/mixer-qt4/ffado_configuration.py Log: fix regression introduced by r1577 Modified: trunk/libffado/support/mixer-qt4/ffado_configuration.py =================================================================== --- trunk/libffado/support/mixer-qt4/ffado_configuration.py 2009-06-21 20:27:03 UTC (rev 1582) +++ trunk/libffado/support/mixer-qt4/ffado_configuration.py 2009-06-21 20:28:03 UTC (rev 1583) @@ -34,11 +34,12 @@ if not filename == "": self.updateFromFile( filename ) - def updateFromFile( self, filename ): + def updateFromFile( self, filename, must_exist=False): filename = os.path.expanduser(filename) log.debug("DeviceList::updateFromFile(%s)" % filename) if not os.path.exists( filename ): - log.error("cannot open file") + if must_exist: + log.error("cannot open file") return f = open( filename, "r" ) |