summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-12-09 17:01:57 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-12-09 17:01:57 +0100
commitb24e58163b3b7c9211114b04c3c83d449dc6e3ac (patch)
tree9b059a9fedcde53d2587686841b50863a11878c4
parentLittle fixes (diff)
downloadpyload-b24e58163b3b7c9211114b04c3c83d449dc6e3ac.tar.xz
fixed progress when resuming
-rw-r--r--module/gui/MainWindow.py8
-rwxr-xr-xmodule/network/Request.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py
index 103dd8d7a..c0fe6e804 100644
--- a/module/gui/MainWindow.py
+++ b/module/gui/MainWindow.py
@@ -455,8 +455,8 @@ class MainWindow(QMainWindow):
self.queueContext.buttons["abort"].setEnabled(False)
if isinstance(item, Package):
self.queueContext.index = i
- self.queueContext.buttons["remove"].setEnabled(True)
- self.queueContext.buttons["restart"].setEnabled(True)
+ #self.queueContext.buttons["remove"].setEnabled(True)
+ #self.queueContext.buttons["restart"].setEnabled(True)
self.queueContext.buttons["pull"].setEnabled(True)
self.queueContext.buttons["edit"].setEnabled(True)
self.queuePriorityMenu.setEnabled(True)
@@ -468,8 +468,8 @@ class MainWindow(QMainWindow):
self.collectorContext.buttons["restart"].setEnabled(True)
else:
self.queueContext.index = None
- self.queueContext.buttons["remove"].setEnabled(False)
- self.queueContext.buttons["restart"].setEnabled(False)
+ #self.queueContext.buttons["remove"].setEnabled(False)
+ #self.queueContext.buttons["restart"].setEnabled(False)
self.queueContext.buttons["pull"].setEnabled(False)
self.queueContext.buttons["edit"].setEnabled(False)
self.queuePriorityMenu.setEnabled(False)
diff --git a/module/network/Request.py b/module/network/Request.py
index b281714a3..3a3cd0f41 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -376,8 +376,8 @@ class Request:
def progress(self, dl_t, dl_d, up_t, up_d):
if self.abort:
return False
- self.dl_arrived = int(dl_d)
- self.dl_size = int(dl_t)
+ self.dl_arrived = int(dl_d)+self.offset
+ self.dl_size = int(dl_t)+self.offset
def get_free_name(self, folder, file_name):
file_count = 0