View | Details | Raw Unified | Return to bug 964548
Collapse All | Expand All

(-)a/greeter/greeterapp.cpp (+14 lines)
Lines 105-110 UnlockApp::UnlockApp(int &argc, char **argv) Link Here
105
    if (QX11Info::isPlatformX11()) {
105
    if (QX11Info::isPlatformX11()) {
106
        installNativeEventFilter(new FocusOutEventFilter);
106
        installNativeEventFilter(new FocusOutEventFilter);
107
    }
107
    }
108
    connect(this, &UnlockApp::lastWindowClosed, this, [this]() {
109
       qDebug() << "last window closed";
110
       removeEventFilter(this);
111
       disconnect(this, &UnlockApp::screenAdded, this, 0);
112
       while(m_views.count())
113
               m_views.takeLast()->deleteLater();
114
115
       delete m_authenticator;
116
       m_authenticator = new Authenticator(this);
117
       connect(m_authenticator, &Authenticator::succeeded, this, &QCoreApplication::quit);
118
       connect(this, &UnlockApp::screenAdded, this, &UnlockApp::desktopResized);
119
       installEventFilter(this);
120
       desktopResized();
121
       });
108
}
122
}
109
123
110
UnlockApp::~UnlockApp()
124
UnlockApp::~UnlockApp()

Return to bug 964548