Commit 8caf064c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add context object to connect

parent a04759de
......@@ -79,13 +79,13 @@ void GetCredentialsJob::Private::getCredentials()
return;
}
QObject::connect(authSession.data(), &SignOn::AuthSession::response,
QObject::connect(authSession.data(), &SignOn::AuthSession::response, q,
[this](const SignOn::SessionData &data) {
sessionData = data;
q->emitResult();
});
QObject::connect(authSession.data(), &SignOn::AuthSession::error,
QObject::connect(authSession.data(), &SignOn::AuthSession::error, q,
[this](const SignOn::Error &error) {
qDebug() << error.message();
q->setError(KJob::UserDefinedError);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment