summaryrefslogtreecommitdiffstats
path: root/module/gui/Queue.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-27 17:07:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-27 17:07:33 +0200
commita33d8062833d1bfec4777145cc484c1d6b9e141f (patch)
tree7d815f80cdcced2d36144b9b71760278d29ed007 /module/gui/Queue.py
parentlocale fixes (diff)
downloadpyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz
some automatic fixes
Diffstat (limited to 'module/gui/Queue.py')
-rw-r--r--module/gui/Queue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/gui/Queue.py b/module/gui/Queue.py
index 8b6f679f8..988f532d7 100644
--- a/module/gui/Queue.py
+++ b/module/gui/Queue.py
@@ -182,7 +182,7 @@ class QueueModel(CollectorModel):
else:
status = item.data["status"]
- if speed == None or status == 7 or status == 10 or status == 5:
+ if speed is None or status == 7 or status == 10 or status == 5:
return QVariant(statusMapReverse[status])
else:
return QVariant("%s (%s KB/s)" % (statusMapReverse[status], speed))
@@ -242,7 +242,7 @@ class QueueProgressBarDelegate(QItemDelegate):
opts.rect.setHeight(option.rect.height()-1)
opts.textVisible = True
opts.textAlignment = Qt.AlignCenter
- if not wait == None:
+ if not wait is None:
opts.text = QString("waiting %d seconds" % (wait,))
else:
opts.text = QString.number(opts.progress) + "%"