Commit a4e18e2b authored by Méven Car's avatar Méven Car
Browse files

[lockscreen] Clear password field when system suspends

Summary:
BUG: 414399
FIXED-IN: 5.18

Test Plan:
1. Lock screen
2. type something in the password field
3. Close lid/suspend system
4. Reopen Lid

Before:
Password text is kept as in step 2

After:
Password text is empty

Reviewers: #plasma, broulik, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25487
parent 6901d3a7
......@@ -62,6 +62,8 @@ SessionManagement::SessionManagement(QObject *parent)
connect(backend, &SessionBackend::canSuspendChanged, this, &SessionManagement::canSuspendChanged);
connect(backend, &SessionBackend::canHybridSuspendChanged, this, &SessionManagement::canHybridSuspendChanged);
connect(backend, &SessionBackend::canHibernateChanged, this, &SessionManagement::canHibernateChanged);
connect(backend, &SessionBackend::aboutToSuspend, this, &SessionManagement::aboutToSuspend);
connect(backend, &SessionBackend::resumingFromSuspend, this, &SessionManagement::resumingFromSuspend);
}
bool SessionManagement::canShutdown() const
......
......@@ -57,6 +57,17 @@ PlasmaCore.ColorScope {
}
}
SessionManagement {
id: sessionManagement
}
Connections {
target: sessionManagement
onAboutToSuspend: {
mainBlock.mainPasswordBox.text = "";
}
}
SessionsModel {
id: sessionsModel
showNewSessionEntry: false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment