summaryrefslogtreecommitdiffstats
path: root/module/gui
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
parentlocale fixes (diff)
downloadpyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz
some automatic fixes
Diffstat (limited to 'module/gui')
-rw-r--r--module/gui/MainWindow.py2
-rw-r--r--module/gui/Queue.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py
index 0d4864959..ab728a55b 100644
--- a/module/gui/MainWindow.py
+++ b/module/gui/MainWindow.py
@@ -425,7 +425,7 @@ class MainWindow(QMainWindow):
item = index.internalPointer()
self.emit(SIGNAL("restartDownload"), item.id, isinstance(item, Package))
id, isTopLevel = self.queueContext.item
- if not id == None:
+ if not id is None:
self.emit(SIGNAL("restartDownload"), id, isTopLevel)
def slotRemoveDownload(self):
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) + "%"