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

Syntax fixes

parent 2c695a39
...@@ -1200,11 +1200,11 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton): ...@@ -1200,11 +1200,11 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton):
account = self.selected_account account = self.selected_account
account.rtp.encryption.enabled = checked account.rtp.encryption.enabled = checked
account.save() account.save()
def _SH_AutoAnswerIntervalChanged(self, interval): def _SH_AutoAnswerIntervalChanged(self, interval):
settings = SIPSimpleSettings() settings = SIPSimpleSettings()
settings.sip.auto_answer_interval = interval settings.sip.auto_answer_interval = interval
settings.save() settings.save()
def _SH_AccountAutoAnswerChanged(self, auto_answer): def _SH_AccountAutoAnswerChanged(self, auto_answer):
account = self.selected_account account = self.selected_account
...@@ -1285,12 +1285,12 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton): ...@@ -1285,12 +1285,12 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton):
int(port) int(port)
except (TypeError, ValueError) as e: except (TypeError, ValueError) as e:
port = STUNServerAddress.default_port port = STUNServerAddress.default_port
try: try:
new_stun_server_list.append(STUNServerAddress(host, port)) new_stun_server_list.append(STUNServerAddress(host, port))
except ValueError as e: except ValueError as e:
continue continue
new_stun_server_list = new_stun_server_list or None new_stun_server_list = new_stun_server_list or None
if account.nat_traversal.stun_server_list != new_stun_server_list: if account.nat_traversal.stun_server_list != new_stun_server_list:
...@@ -1306,7 +1306,6 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton): ...@@ -1306,7 +1306,6 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton):
if account.nat_traversal.msrp_relay != msrp_relay: if account.nat_traversal.msrp_relay != msrp_relay:
account.nat_traversal.msrp_relay = msrp_relay account.nat_traversal.msrp_relay = msrp_relay
account.save() account.save()
def _SH_MSRPRelayTransportButtonActivated(self, text): def _SH_MSRPRelayTransportButtonActivated(self, text):
account = self.selected_account account = self.selected_account
......
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