Merge lp:~mardy/ubuntu-system-settings-online-accounts/lp1315341 into lp:~mardy/ubuntu-system-settings-online-accounts/master

Proposed by Alberto Mardegan
Status: Merged
Approved by: Alberto Mardegan
Approved revision: 112
Merged at revision: 118
Proposed branch: lp:~mardy/ubuntu-system-settings-online-accounts/lp1315341
Merge into: lp:~mardy/ubuntu-system-settings-online-accounts/master
Diff against target: 19 lines (+2/-1)
1 file modified
src/module/RemovalConfirmation.qml (+2/-1)
To merge this branch: bzr merge lp:~mardy/ubuntu-system-settings-online-accounts/lp1315341
Reviewer Review Type Date Requested Status
Justin McPherson (community) Approve
Alberto Mardegan Pending
Review via email: mp+218048@code.launchpad.net

Commit message

  Fix QQmlExpression's invalid context warning

  The bug was caused because we are destroying the page while the Ubuntu UI
  toolkit is still playing the fading out animation for the dialog which prompts
  for the removal confirmation.
  The fix consists of emitting the closed() signal (and therefore proceed with
  the removal of the account) only after the dialog animation has been completed.
  This is a sequential animation, whose last step is setting the "visible"
  property to false.

Description of the change

  Fix QQmlExpression's invalid context warning

  The bug was caused because we are destroying the page while the Ubuntu UI
  toolkit is still playing the fading out animation for the dialog which prompts
  for the removal confirmation.
  The fix consists of emitting the closed() signal (and therefore proceed with
  the removal of the account) only after the dialog animation has been completed.
  This is a sequential animation, whose last step is setting the "visible"
  property to false.

To post a comment you must log in.
112. By Alberto Mardegan

Merge from master

[ Martin Pitt ]
* Fix wrong title check in autopilot test. Run autopilot under Xvfb
  and dbus-launch in the autopkgtest, and add missing autopilot-
  desktop test dependency. (LP: #1320175)
[ Alberto Mardegan ]
* Complete the service-side implementation of the access request API.
[ Ubuntu daily release ]
* New rebuild forced

Revision history for this message
Justin McPherson (justinmcp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/module/RemovalConfirmation.qml'
2--- src/module/RemovalConfirmation.qml 2013-06-24 16:25:20 +0000
3+++ src/module/RemovalConfirmation.qml 2014-05-30 07:19:19 +0000
4@@ -32,6 +32,8 @@
5 title: i18n.dtr("ubuntu-system-settings-online-accounts", "Remove account")
6 text: i18n.dtr("ubuntu-system-settings-online-accounts", "The %1 account will be removed only from your phone. You can add it again later.").arg(accountName)
7
8+ onVisibleChanged: if (!visible) closed()
9+
10 Button {
11 text: i18n.dtr("ubuntu-system-settings-online-accounts", "Remove")
12 onClicked: setConfirmed(true)
13@@ -45,6 +47,5 @@
14 function setConfirmed(isConfirmed) {
15 confirmed = isConfirmed
16 PopupUtils.close(root)
17- closed()
18 }
19 }

Subscribers

People subscribed via source and target branches

to all changes: