Commit bc0034c7 authored by David Edmundson's avatar David Edmundson

[logout-greeter] Avoid prompting from inside the prompt

parent 654f0c9e
......@@ -269,7 +269,7 @@ void KSMShutdownDlg::setupWaylandIntegration()
void KSMShutdownDlg::slotLogout()
{
m_session.requestLogout();
m_session.requestLogout(SessionManagement::ConfirmationMode::Skip);
accept();
}
......@@ -277,7 +277,7 @@ void KSMShutdownDlg::slotReboot()
{
// no boot option selected -> current
m_bootOption.clear();
m_session.requestReboot();
m_session.requestReboot(SessionManagement::ConfirmationMode::Skip);
accept();
}
......@@ -285,7 +285,7 @@ void KSMShutdownDlg::slotReboot(int opt)
{
if (int(rebootOptions.size()) > opt)
m_bootOption = rebootOptions[opt];
m_session.requestReboot();
m_session.requestReboot(SessionManagement::ConfirmationMode::Skip);
accept();
}
......
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