Commit 2b32fb83 authored by Luci Stanescu's avatar Luci Stanescu

Fixed handling identity changes when there are no enabled accounts

parent 5abff489
......@@ -180,6 +180,8 @@ class AccountSelector(QComboBox):
self.setPalette(palette)
def selection_changed(self, index):
if index == -1:
return
account_info = self.itemData(index).toPyObject()
palette = self.palette()
if account_info.registration_state == 'succeeded':
......
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