summaryrefslogtreecommitdiffstats
path: root/module/gui/Collector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-09-22 16:20:15 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-09-22 16:20:15 +0200
commit4f72518f40ee83bd4e711e800affae0c1f6201bc (patch)
treee869266536dbae5bd2c2e5cc09cc469b75704620 /module/gui/Collector.py
parentcurl gobal init (diff)
downloadpyload-4f72518f40ee83bd4e711e800affae0c1f6201bc.tar.xz
extended cnl
Diffstat (limited to 'module/gui/Collector.py')
-rw-r--r--module/gui/Collector.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/gui/Collector.py b/module/gui/Collector.py
index 08d82daf8..5fc041a8e 100644
--- a/module/gui/Collector.py
+++ b/module/gui/Collector.py
@@ -194,7 +194,10 @@ class CollectorModel(QAbstractItemModel):
pointer = self._data[row]
index = self.createIndex(row, column, pointer)
elif parent.isValid():
- pointer = parent.internalPointer().children[row]
+ try:
+ pointer = parent.internalPointer().children[row]
+ except:
+ return QModelIndex()
index = self.createIndex(row, column, pointer)
else:
index = QModelIndex()