From 619e8297566309f5a77946aff76813ffe6fccd4a Mon Sep 17 00:00:00 2001 From: Jeix Date: Sat, 20 Nov 2010 20:17:49 +0100 Subject: gui: account fixes --- module/gui/Accounts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/gui') diff --git a/module/gui/Accounts.py b/module/gui/Accounts.py index 23751d79f..a4a047920 100644 --- a/module/gui/Accounts.py +++ b/module/gui/Accounts.py @@ -100,7 +100,10 @@ class AccountModel(QAbstractItemModel): return self.cols def hasChildren(self, parent=QModelIndex()): - return False + if parent == QModelIndex(): + return True + else: + return False def canFetchMore(self, parent): return False @@ -144,7 +147,7 @@ class AccountDelegate(QItemDelegate): def __init__(self, parent, model): QItemDelegate.__init__(self, parent) self.model = model - + def paint(self, painter, option, index): if not index.isValid(): return -- cgit v1.2.3