| 111 | } |
| 112 | |
| 113 | void QmitkPipInstallDialog::closeEvent(QCloseEvent* event) |
| 114 | { |
| 115 | if (m_Installer->IsRunning() && !this->ConfirmCancel()) |
| 116 | { |
| 117 | event->ignore(); |
| 118 | return; |
| 119 | } |
| 120 | |
| 121 | // The user is dismissing the dialog. If a previous attempt failed and left |
| 122 | // a partial venv behind, clean it up. No-op after a successful install or |
| 123 | // after Cancel already did the cleanup. |
| 124 | m_Installer->AbandonInstall(); |
| 125 | } |
| 126 | |
| 127 | void QmitkPipInstallDialog::reject() |
| 128 | { |
nothing calls this directly
no test coverage detected