Commit 1ab2fc1b authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Do not ask for confirmation of closing when logging out.

This effectively reverts the change which was made to ask for
confirmation when powering off. That issue needs to be reworked in
next feature release, but for now just revert it since the current
implementation should cause more annoyance than benefit.

BUG: 301458
FIXED-IN: 4.9.0
CCBUG: 127194
parent af20d278
......@@ -41,6 +41,7 @@
#include <KXMLGUIFactory>
#include <KNotifyConfigWidget>
#include <KConfigDialog>
#include <KApplication>
// Konsole
#include "BookmarkHandler.h"
......@@ -499,6 +500,13 @@ void MainWindow::newWindow()
bool MainWindow::queryClose()
{
// Do not ask for confirmation during log out and power off
// TODO: rework the dealing of this case to make it has its own confirmation
// dialog.
if (kapp->sessionSaving()) {
return true;
}
// TODO: Ideally, we should check what process is running instead
// of just how many sessions are running.
// If only 1 session is running, don't ask user to confirm close.
......
Supports Markdown
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