Ask for consent to terms and conditions if required

This commit is contained in:
Tobias Fella
2020-12-30 13:17:14 +00:00
committed by Carl Schwan
parent 88cc972edc
commit bd00a73aa9
3 changed files with 34 additions and 0 deletions

View File

@@ -230,6 +230,12 @@ void Controller::addConnection(Connection *c)
dropConnection(c);
});
connect(c, &Connection::requestFailed, this, [=] (BaseJob *job) {
if(job->error() == BaseJob::UserConsentRequiredError) {
Q_EMIT userConsentRequired(job->errorUrl());
}
});
setBusy(true);
c->sync();