summaryrefslogtreecommitdiffstats
path: root/module/gui/Overview.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2011-02-11 20:17:20 +0100
committerGravatar Jeix <devnull@localhost> 2011-02-11 20:17:20 +0100
commit4a6cfe415a0d362bf30f22fac16b732195f97232 (patch)
treef90318302830b967b4734fc1e7d82eda6d52a8fc /module/gui/Overview.py
parentsocket code fixes (diff)
downloadpyload-4a6cfe415a0d362bf30f22fac16b732195f97232.tar.xz
GUI updates, closed #181, updated XDCC, fixed FileSonic
Diffstat (limited to 'module/gui/Overview.py')
-rw-r--r--module/gui/Overview.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/gui/Overview.py b/module/gui/Overview.py
index 205d85234..533c6faa8 100644
--- a/module/gui/Overview.py
+++ b/module/gui/Overview.py
@@ -160,10 +160,10 @@ class OverviewDelegate(QItemDelegate):
size = "%s KiB" % kbytes
return size
- #if progress == 100:
- sizeline = QString(_("Size: %s") % formatSize(maxSize))
- #else:
- # sizeline = QString(_("Size: %s/%s") % (formatSize(currentSize), formatSize(maxSize)))
+ if progress in (0,100):
+ sizeline = QString(_("Size: %s") % formatSize(maxSize))
+ else:
+ sizeline = QString(_("Size: %s / %s") % (formatSize(currentSize), formatSize(maxSize)))
f = painter.font()
f.setPointSize(12)