Commit f7ba5790 authored by Tijmen de Mes's avatar Tijmen de Mes

Syntax fixes

parent 2a787f66
......@@ -106,15 +106,15 @@ class SIPPortEditor(QSpinBox):
def stepBy(self, steps):
value = self.value()
sibling_value = self.sibling.value()
if value+steps == sibling_value != 0:
if value + steps == sibling_value != 0:
steps += steps/abs(steps) # add one more unit in the right direction
if 0 < value+steps < 1024:
if 0 < value + steps < 1024:
if steps < 0:
steps = -value
else:
steps = 1024 - value
if value+steps == sibling_value != 0:
steps += steps/abs(steps) # add one more unit in the right direction
steps += steps / abs(steps) # add one more unit in the right direction
return super(SIPPortEditor, self).stepBy(steps)
def validate(self, input, pos):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment