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. Fixes: #1435364
Approved by: Daniel d'Andrada
commitd9b4c0f1564f1c2205f3ff89848e223a258e933e
authorMichael Terry <michael.terry@canonical.com>
dateMon 18 May 2015, 23:03 (11 years ago)
parent7b95d893b8e229
qml/Greeter/Greeter.qml+4−2
@@ -141,8 +141,10 @@ Showable {
141141 enabled = false;
142142 if (LightDM.Greeter.startSessionSync()) {
143143 sessionStarted();
144− loader.item.notifyAuthenticationSucceeded();
145− } else {
144+ if (loader.item) {
145+ loader.item.notifyAuthenticationSucceeded();
146+ }
147+ } else if (loader.item) {
146148 loader.item.notifyAuthenticationFailed();
147149 }
148150 enabled = true;