Hacky fix to hacky offset code

This commit is contained in:
Etoh 2013-06-08 18:48:50 +02:00
parent a3d6bb9608
commit 72686a8328

View File

@ -95,7 +95,7 @@ class MainDialog(QtGui.QDialog):
"Offset (+/-):", QtGui.QLineEdit.Normal,
"")
if ok and newoffset != '':
o = re.match(constants.UI_OFFSET_REGEX, newoffset)
o = re.match(constants.UI_OFFSET_REGEX, "o " + newoffset)
if(o):
sign = self._extractSign(o.group('sign'))
t = utils.parseTime(o.group('time'))