Commit 244d09bd authored by Saul Ibarra's avatar Saul Ibarra

Fixed typo

parent a6c0a0c5
......@@ -649,7 +649,7 @@ class MainWindow(base_class, ui_class):
def _NH_SIPAccountManagerDidRemoveAccount(self, notification):
account = notification.data.account
action = (action for action in self.accounts_menu.actions() if action.data().toPyObject() is account).next()
self.account_menu.removeAction(action)
self.accounts_menu.removeAction(action)
if isinstance(account, Account) and account.enabled and account.message_summary.enabled:
action = (action for action in self.voicemail_menu.actions() if action.data().toPyObject()[0] is account).next()
self.voicemail_menu.removeAction(action)
......
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