Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KAccounts Integration
Commits
8caf064c
Commit
8caf064c
authored
Sep 23, 2020
by
Nicolas Fella
Browse files
Add context object to connect
parent
a04759de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/getcredentialsjob.cpp
View file @
8caf064c
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment