This commit is contained in:
Kovid Goyal 2012-08-26 08:42:45 +05:30
parent 9ba5fa1c41
commit a79920d5f1

View File

@ -54,6 +54,8 @@ class EmailAccounts(QAbstractTableModel): # {{{
if row < 0 or row >= self.rowCount(): if row < 0 or row >= self.rowCount():
return NONE return NONE
account = self.account_order[row] account = self.account_order[row]
if account not in self.accounts:
return NONE
if role == Qt.UserRole: if role == Qt.UserRole:
return (account, self.accounts[account]) return (account, self.accounts[account])
if role == Qt.ToolTipRole: if role == Qt.ToolTipRole: