Commit 60abae98 authored by Dan Pascu's avatar Dan Pascu

Renamed action handler method

parent 966c4026
...@@ -246,7 +246,7 @@ class MainWindow(base_class, ui_class): ...@@ -246,7 +246,7 @@ class MainWindow(base_class, ui_class):
if settings.audio.alert_device == action.data().toPyObject(): if settings.audio.alert_device == action.data().toPyObject():
action.setChecked(True) action.setChecked(True)
def _SH_AccountActionTriggered(self, action, enabled): def _AH_AccountActionTriggered(self, action, enabled):
account = action.data().toPyObject() account = action.data().toPyObject()
account.enabled = enabled account.enabled = enabled
account.save() account.save()
...@@ -458,7 +458,7 @@ class MainWindow(base_class, ui_class): ...@@ -458,7 +458,7 @@ class MainWindow(base_class, ui_class):
action.setCheckable(True) action.setCheckable(True)
action.setData(QVariant(account)) action.setData(QVariant(account))
action.setChecked(account.enabled) action.setChecked(account.enabled)
action.triggered.connect(partial(self._SH_AccountActionTriggered, action)) action.triggered.connect(partial(self._AH_AccountActionTriggered, action))
self.accounts_menu.addAction(action) self.accounts_menu.addAction(action)
def _NH_SIPApplicationDidStart(self, notification): def _NH_SIPApplicationDidStart(self, notification):
...@@ -505,7 +505,7 @@ class MainWindow(base_class, ui_class): ...@@ -505,7 +505,7 @@ class MainWindow(base_class, ui_class):
action = QAction(account.id, None) action = QAction(account.id, None)
action.setCheckable(True) action.setCheckable(True)
action.setData(QVariant(account)) action.setData(QVariant(account))
action.triggered.connect(partial(self._SH_AccountActionTriggered, action)) action.triggered.connect(partial(self._AH_AccountActionTriggered, action))
self.accounts_menu.addAction(action) self.accounts_menu.addAction(action)
def _NH_SIPAccountManagerDidRemoveAccount(self, notification): def _NH_SIPAccountManagerDidRemoveAccount(self, notification):
......
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