mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
[Oracle] Don't report a cancelled card database update as successful (#3470)
Took 3 minutes
This commit is contained in:
parent
1ed9823b56
commit
687a012d9b
7 changed files with 43 additions and 9 deletions
|
|
@ -110,6 +110,18 @@ void OracleWizard::accept()
|
|||
QDialog::accept();
|
||||
}
|
||||
|
||||
void OracleWizard::reject()
|
||||
{
|
||||
cancelled = true;
|
||||
|
||||
const auto replies = nam->findChildren<QNetworkReply *>();
|
||||
for (QNetworkReply *reply : replies) {
|
||||
reply->abort();
|
||||
}
|
||||
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
void OracleWizard::enableButtons()
|
||||
{
|
||||
button(QWizard::NextButton)->setDisabled(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue