Ask for consent to terms and conditions if required
This commit is contained in:
committed by
Carl Schwan
parent
88cc972edc
commit
bd00a73aa9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user