| 41 | } |
| 42 | |
| 43 | void Update::updateFinished() |
| 44 | { |
| 45 | if(m_updateTask->wasSuccessful()) |
| 46 | { |
| 47 | m_updateTask.reset(); |
| 48 | emitSucceeded(); |
| 49 | } |
| 50 | else |
| 51 | { |
| 52 | QString reason = tr("Instance update failed because: %1\n\n").arg(m_updateTask->failReason()); |
| 53 | m_updateTask.reset(); |
| 54 | emit logLine(reason, MessageLevel::Fatal); |
| 55 | emitFailed(reason); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | bool Update::canAbort() const |
| 60 | { |
nothing calls this directly
no test coverage detected