Don't insert invalid google accounts into the access list
ClosedPublic

Authored by davidk on Feb 1 2018, 8:10 AM.

Details

Summary

This prevents accounts to be inserted into the list, if the user
presses the cancel button or doesn't authenticate.
Requires D10221.

Test Plan

The accounts aren't inserted into the access list in KAddressbook,
if I press cancel or don't grant the access scopes.

Diff Detail

Repository
R44 KDE PIM Runtime
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidk created this revision.Feb 1 2018, 8:10 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptFeb 1 2018, 8:10 AM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
davidk requested review of this revision.Feb 1 2018, 8:10 AM
dvratil accepted this revision.Feb 1 2018, 8:31 AM
dvratil added a subscriber: dvratil.

Thanks! This change does not make much sense without the libkgapi patch, right? If so, then it should go only to master.

This revision is now accepted and ready to land.Feb 1 2018, 8:31 AM

The change improves the current state in case the user doesn't grant the access scopes. Only if the user presses the cancel button, the change in libkgapi is needed. So I think it makes sense in 17.12.

Ok, 17.12 it is.

davidk updated this revision to Diff 26332.Feb 1 2018, 4:24 PM
This comment was removed by davidk.
This revision was automatically updated to reflect the committed changes.