Merge lp:~mterry/unity8/lockscreen-unresponsive into lp:unity8

Proposed by Michael Terry
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 1752
Merged at revision: 1781
Proposed branch: lp:~mterry/unity8/lockscreen-unresponsive
Merge into: lp:unity8
Diff against target: 16 lines (+4/-2)
1 file modified
qml/Greeter/Greeter.qml (+4/-2)
To merge this branch: bzr merge lp:~mterry/unity8/lockscreen-unresponsive
Reviewer Review Type Date Requested Status
Daniel d'Andrada (community) codewise Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+257531@code.launchpad.net

Commit message

Fix the lockscreen becoming unresponsive after testing an app on the device from QtCreator.

Using the hideGreeter dbus call got unity8 in a state where the greeter would try to call a method on an object that didn't exist at the time. Which meant it early-exited from a method before the greeter got re-enabled.

Description of the change

Fix the lockscreen becoming unresponsive after testing an app on the device from QtCreator.

Using the hideGreeter dbus call got unity8 in a state where the greeter would try to call a method on an object that didn't exist at the time. Which meant it early-exited from a method before the greeter got re-enabled.

== Checklist ==

 * Are there any related MPs required for this MP to build/function as expected? Please list.
 No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
 Yes

 * Did you make sure that your branch does not contain spurious tags?
 Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
 NA

 * If you changed the UI, has there been a design review?
 NA

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
No, but it's a no-brainer.

* Did CI run pass? If not, please explain why.
Autopilot is broken as usual.

* Did you make sure that the branch does not contain spurious tags?
Yes.

review: Approve
Revision history for this message
Daniel d'Andrada (dandrader) :
review: Approve (codewise)
Revision history for this message
MichaƂ Sawicz (saviq) :
Revision history for this message
Michael Terry (mterry) :
Revision history for this message
Albert Astals Cid (aacid) wrote :

Talking with saviq he thought that the two loader.item.notifyAuthentication calls were the same, i did too, because they're very long :D, which would have made sense to unify then, but otherwise it's ok, top approving.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Greeter/Greeter.qml'
2--- qml/Greeter/Greeter.qml 2015-03-18 10:17:28 +0000
3+++ qml/Greeter/Greeter.qml 2015-04-27 13:55:32 +0000
4@@ -141,8 +141,10 @@
5 enabled = false;
6 if (LightDM.Greeter.startSessionSync()) {
7 sessionStarted();
8- loader.item.notifyAuthenticationSucceeded();
9- } else {
10+ if (loader.item) {
11+ loader.item.notifyAuthenticationSucceeded();
12+ }
13+ } else if (loader.item) {
14 loader.item.notifyAuthenticationFailed();
15 }
16 enabled = true;

Subscribers

People subscribed via source and target branches