From: Ed Page Date: Sat, 31 Oct 2009 02:31:45 +0000 (-0500) Subject: Superfluous check removed X-Git-Url: http://git.maemo.org/git/?p=gonvert;a=commitdiff_plain;h=1de407f0af6d03584c8f2d93a81545d33fcc78af;ds=sidebyside Superfluous check removed --- diff --git a/src/gonvert_glade.py b/src/gonvert_glade.py index a314c32..dd38d9a 100755 --- a/src/gonvert_glade.py +++ b/src/gonvert_glade.py @@ -606,7 +606,6 @@ class Gonvert(object): func, arg = self._unitDataInCategory[row[0]][0] row[1] = str(func.from_base(base, arg)) - # if the second row has a unit then update its value if self._previousUnitName.get_text() != '': func, arg = self._unitDataInCategory[self._previousUnitName.get_text()][0] self._previousUnitValue.set_text(str(func.from_base(base, arg, ))) @@ -631,10 +630,8 @@ class Gonvert(object): func, arg = self._unitDataInCategory[row[0]][0] row[1] = str(func.from_base(base, arg)) - # if the second row has a unit then update its value - if self._unitName.get_text() != '': - func, arg = self._unitDataInCategory[self._unitName.get_text()][0] - self._unitValue.set_text(str(func.from_base(base, arg, ))) + func, arg = self._unitDataInCategory[self._unitName.get_text()][0] + self._unitValue.set_text(str(func.from_base(base, arg, ))) except Exception: _moduleLogger.exception("")