| 171 | } |
| 172 | |
| 173 | void frmProgress::downloadFinished() { |
| 174 | hide(); |
| 175 | |
| 176 | QStringList queue = getThread.queue; |
| 177 | getThread.queue.clear(); |
| 178 | |
| 179 | mutex.lock(); |
| 180 | if (showSummary) { |
| 181 | if (!getThread.criticalMessage.isEmpty()) { |
| 182 | QMessageBox::critical(0, tr("Critical error!"), |
| 183 | getThread.criticalMessage); |
| 184 | } else if (queue.size() > 0 && !getThread.subStatusList.isEmpty()) { |
| 185 | summary.setSummaryList(getThread.subStatusList); |
| 186 | summary.exec(); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | if (closeRequested) close(); |
| 191 | |
| 192 | mutex.unlock(); |
| 193 | if (batchMode) qApp->quit(); |
| 194 | } |
| 195 | |
| 196 | void frmProgress::closeEvent(QCloseEvent *event) { |
| 197 | if (getThread.isRunning()) { |
nothing calls this directly
no test coverage detected