diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-23 19:07:13 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-23 19:07:13 +0100 |
commit | 4a24ea6c38015a1a1d937c85b9caedaf5ce251d8 (patch) | |
tree | 4c628e713593b2d3ec416fe1decdcb1b8cc14b87 /logic/auth/YggdrasilTask.cpp | |
parent | a01b1707deee6ee1a8e5102ad991368da3312259 (diff) | |
download | MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.gz MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.lz MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.xz MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.zip |
Make some more error messages translateable.
Diffstat (limited to 'logic/auth/YggdrasilTask.cpp')
-rw-r--r-- | logic/auth/YggdrasilTask.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/logic/auth/YggdrasilTask.cpp b/logic/auth/YggdrasilTask.cpp index 277d7bfd..7679b11f 100644 --- a/logic/auth/YggdrasilTask.cpp +++ b/logic/auth/YggdrasilTask.cpp @@ -54,7 +54,7 @@ void YggdrasilTask::executeTask() counter.setSingleShot(false); counter.start(time_step); progress(0, timeout_max); - connect(&timeout_keeper, &QTimer::timeout, this, &YggdrasilTask::abort); + connect(&timeout_keeper, &QTimer::timeout, this, &YggdrasilTask::abortByTimeout); connect(&counter, &QTimer::timeout, this, &YggdrasilTask::heartbeat); } @@ -76,6 +76,12 @@ void YggdrasilTask::abort() m_netReply->abort(); } +void YggdrasilTask::abortByTimeout() +{ + progress(timeout_max, timeout_max); + m_netReply->abort(); +} + void YggdrasilTask::sslErrors(QList<QSslError> errors) { int i = 1; |