| 485 | } |
| 486 | |
| 487 | void ProgressDialog::cancel(e_CancelReason eCancelReason) |
| 488 | { |
| 489 | if(!m_bWasCancelled) |
| 490 | { |
| 491 | m_bWasCancelled = true; |
| 492 | m_eCancelReason = eCancelReason; |
| 493 | if(m_eventLoop != nullptr) |
| 494 | m_eventLoop->exit(1); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | ProgressDialog::e_CancelReason ProgressDialog::cancelReason() |
| 499 | { |