~ci-train-bot/ubuntu-system-settings-online-accounts/ubuntu-system-settings-online-accounts-ubuntu-zesty-2633

Viewing all changes in revision 391.

  • Committer: Bileto Bot
  • Author(s): Alberto Mardegan
  • Date: 2016-09-29 09:07:32 UTC
  • mfrom: (366.1.6 empty-page-1594944)
  • Revision ID: ci-train-bot@canonical.com-20160929090732-ghifxbh27qd8nlrv
Properly handle early termination of account access requests

When a degenerate request (coming from an unconfined process with empty application ID) was received, the allowed() signal was emitted from the Component.onCompleted handler.
However, given that this all was happening inside the QQuickView::setSource() method, the signal was effectively emitted before the C++ code had a chance to setup the signal connections, with the result that such a signal was lost.

To solve this, we export a "request" object to QML, whose methods replace the old signals. (LP: #1594944)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: