Commit c56666d0 authored by Saul Ibarra's avatar Saul Ibarra

Don't allow Bonjour account to be selected if there is no Bonjour support in the system

parent 4d95ad5a
...@@ -530,6 +530,7 @@ class MainWindow(base_class, ui_class): ...@@ -530,6 +530,7 @@ class MainWindow(base_class, ui_class):
for account in account_manager.iter_accounts(): for account in account_manager.iter_accounts():
action = QAction(account.id if account is not BonjourAccount() else u'Bonjour', None) action = QAction(account.id if account is not BonjourAccount() else u'Bonjour', None)
action.setCheckable(True) action.setCheckable(True)
action.setEnabled(True if account is not BonjourAccount() else account.enabled)
action.setData(QVariant(account)) action.setData(QVariant(account))
action.setChecked(account.enabled) action.setChecked(account.enabled)
action.triggered.connect(partial(self._AH_AccountActionTriggered, action)) action.triggered.connect(partial(self._AH_AccountActionTriggered, 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