diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-11-17 11:44:18 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-11-17 11:44:18 +0100 |
commit | 210629e274a08c592d8f38f7b382c1c5a05a7ab1 (patch) | |
tree | a32ac2426cf6c45c061c05b347f95f2a68439d5a /logic/net/NetJob.h | |
parent | 2a45302dfc8d63c627fd1164ef84f434f40bd917 (diff) | |
download | MultiMC-210629e274a08c592d8f38f7b382c1c5a05a7ab1.tar MultiMC-210629e274a08c592d8f38f7b382c1c5a05a7ab1.tar.gz MultiMC-210629e274a08c592d8f38f7b382c1c5a05a7ab1.tar.lz MultiMC-210629e274a08c592d8f38f7b382c1c5a05a7ab1.tar.xz MultiMC-210629e274a08c592d8f38f7b382c1c5a05a7ab1.zip |
Use the forge mirrors for downloading forge libraries
Let's hope we never, ever see a forge download error again.
Diffstat (limited to 'logic/net/NetJob.h')
-rw-r--r-- | logic/net/NetJob.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/logic/net/NetJob.h b/logic/net/NetJob.h index c5c0d00c..021a1550 100644 --- a/logic/net/NetJob.h +++ b/logic/net/NetJob.h @@ -40,6 +40,16 @@ public: downloads.append(action); parts_progress.append(part_info()); total_progress++; + // if this is already running, the action needs to be started right away! + if (isRunning()) + { + emit progress(current_progress, total_progress); + connect(base.get(), SIGNAL(succeeded(int)), SLOT(partSucceeded(int))); + connect(base.get(), SIGNAL(failed(int)), SLOT(partFailed(int))); + connect(base.get(), SIGNAL(progress(int, qint64, qint64)), + SLOT(partProgress(int, qint64, qint64))); + base->start(); + } return true; } |