Commit 3309e5b1 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Open close query when logging out with >1 sessions running.

This causes the close query dialog to be display when exiting Konsole
and logging off the system.

Ideally we should be looking on what's running, not the # of sessions.

FEATURE: 127194
FIXED-IN: 4.9
parent 0bd19275
......@@ -408,8 +408,10 @@ void MainWindow::newWindow()
bool MainWindow::queryClose()
{
if (kapp->sessionSaving() ||
_viewManager->viewProperties().count() < 2)
// 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.
if (_viewManager->viewProperties().count() < 2)
return true;
int result = KMessageBox::warningYesNoCancel(this,
......
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