@@ -17,8 +17,11 @@
19#include "Greeter.h"
19#include "Greeter.h"
20+#include <QCoreApplication>
20#include <QLightDM/Greeter>
21#include <QLightDM/Greeter>
22class GreeterPrivate
25class GreeterPrivate
@@ -57,9 +60,18 @@ Greeter::Greeter(QObject* parent)
57 connect(d->m_greeter, SIGNAL(authenticationComplete()),
60 connect(d->m_greeter, SIGNAL(authenticationComplete()),
58 this, SLOT(authenticationCompleteFilter()));
61 this, SLOT(authenticationCompleteFilter()));
63+ // Listen for "state resets"
64+ connect(QCoreApplication::instance(), SIGNAL(applicationStateChanged(Qt::ApplicationState)),
65+ this, SLOT(handleAppStateChange(Qt::ApplicationState)));
60 d->m_greeter->connectSync();
67 d->m_greeter->connectSync();
70+void Greeter::handleAppStateChange(Qt::ApplicationState state)
72+ qDebug() << "MIKE state change " << state;
63bool Greeter::isAuthenticated() const
75bool Greeter::isAuthenticated() const
65 Q_D(const Greeter);
77 Q_D(const Greeter);