Commit 7736bc32 authored by Dan Pascu's avatar Dan Pascu

Fixed error when missing display name for account

parent c69b7ffa
......@@ -324,7 +324,7 @@ class MainWindow(base_class, ui_class):
def _SH_IdentityCurrentIndexChanged(self, index):
if index != -1:
account = self.identity.itemData(index).toPyObject().account
self.display_name.setText(account.display_name)
self.display_name.setText(account.display_name or u'')
self.display_name.setEnabled(True)
self.activity_note.setEnabled(True)
self.status.setEnabled(True)
......
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