on xenial help sign in
Move change emission
commit217d68cd6ff57f0a24184e3b09a85c55866e1a02 authorMichael Terry <michael.terry@canonical.com> dateMon 9 Jan 2017, 16:20 (10 years ago) parentb4c3f4b
1 file changed+3−1
plugins/LightDM/Greeter.cpp+3−1
plugins/LightDM/Greeter.cpp+3−1
@@ -151,7 +151,6 @@ void Greeter::respond(const QString &response)
151151{
152152 Q_D(Greeter);
153153 d->m_greeter->respond(response);
154− Q_EMIT authenticationUserChanged(); // may have changed in liblightdm
155154}
156155
157156bool Greeter::startSessionSync(const QString &session)
@@ -165,6 +164,8 @@ void Greeter::showPromptFilter(const QString &text, QLightDM::Greeter::PromptTyp
165164 Q_D(Greeter);
166165 d->wasPrompted = true;
167166
167+ Q_EMIT authenticationUserChanged(); // may have changed in liblightdm
168+
168169 bool isDefaultPrompt = (text == dgettext("Linux-PAM", "Password: "));
169170
170171 // Strip prompt of any colons at the end
@@ -184,6 +185,7 @@ void Greeter::showPromptFilter(const QString &text, QLightDM::Greeter::PromptTyp
184185
185186void Greeter::showMessageFilter(const QString &text, QLightDM::Greeter::MessageType type)
186187{
188+ Q_EMIT authenticationUserChanged(); // may have changed in liblightdm
187189 Q_EMIT showMessage(text, type == QLightDM::Greeter::MessageTypeError);
188190}
189191