mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 06:53:42 +02:00
...
This commit is contained in:
parent
9ba5fa1c41
commit
a79920d5f1
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ def data(self, index, role):
|
|||
if row < 0 or row >= self.rowCount():
|
||||
return NONE
|
||||
account = self.account_order[row]
|
||||
if account not in self.accounts:
|
||||
return NONE
|
||||
if role == Qt.UserRole:
|
||||
return (account, self.accounts[account])
|
||||
if role == Qt.ToolTipRole:
|
||||
|
|
|
|||
Loading…
Reference in a new issue