summaryrefslogtreecommitdiffstats
path: root/module/gui/Overview.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-01-26 13:38:11 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-01-26 13:38:11 +0100
commit08796fb0373256c85d66d421e26afbb94b3d11f4 (patch)
treef89c485bdf7ee7999473388b4588e08fefca7fd8 /module/gui/Overview.py
parent[GUI] added nice overview (diff)
downloadpyload-08796fb0373256c85d66d421e26afbb94b3d11f4.tar.xz
overview speed fix, added lib dir
Diffstat (limited to 'module/gui/Overview.py')
-rw-r--r--module/gui/Overview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/gui/Overview.py b/module/gui/Overview.py
index 47f3a7421..bbcf6f9f6 100644
--- a/module/gui/Overview.py
+++ b/module/gui/Overview.py
@@ -98,7 +98,7 @@ class OverviewDelegate(QItemDelegate):
partsf = index.data(OverviewModel.PartsFinished).toString()
parts = index.data(OverviewModel.Parts).toString()
eta = index.data(OverviewModel.ETA).toString()
- speed = index.data(OverviewModel.Speed).toString()
+ speed = index.data(OverviewModel.Speed).toString() or 0
progress = int(index.data(OverviewModel.Progress).toString())
statusline = QString(_("Parts: %s/%s ETA: %s Speed: %s kb/s" % (partsf, parts, eta, speed)))