MCPcopy Create free account
hub / github.com/QNapi/qnapi / downloadFinished

Method downloadFinished

gui/src/forms/frmprogress.cpp:173–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void 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
196void frmProgress::closeEvent(QCloseEvent *event) {
197 if (getThread.isRunning()) {

Callers

nothing calls this directly

Calls 2

setSummaryListMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected