summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-11-20 20:17:49 +0100
committerGravatar Jeix <devnull@localhost> 2010-11-20 20:17:49 +0100
commit619e8297566309f5a77946aff76813ffe6fccd4a (patch)
tree0901da8f3be4dc64d6d3c951df38823918810641
parentsharecx fix 3 (diff)
downloadpyload-619e8297566309f5a77946aff76813ffe6fccd4a.tar.xz
gui: account fixes
-rw-r--r--module/gui/Accounts.py7
-rwxr-xr-xpyLoadGui.py1
2 files changed, 6 insertions, 2 deletions
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
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 0ac74cda5..0ee865dfe 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -674,6 +674,7 @@ class main(QObject):
self.mainWindow.tabs["accounts"]["view"].model().reloadData(force)
def slotQuit(self):
+ self.tray.hide()
self.quitInternal()
self.app.quit()