Commit d6cea2ef authored by Vincent Pinon's avatar Vincent Pinon

Windows: terminate KDE session on window close

BUG: 380854
parent 2c2c6a32
......@@ -2146,6 +2146,9 @@ void MainWindow::closeEvent(QCloseEvent *event)
{
KXmlGuiWindow::closeEvent(event);
if (event->isAccepted()) {
#ifdef Q_OS_WIN
QProcess::startDetached(QStandardPaths::findExecutable(QStringLiteral("kdeinit5")) + " --terminate");
#endif
QApplication::exit(m_exitCode);
return;
}
......
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