summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2012-01-28 18:15:36 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2012-01-28 18:15:36 (GMT)
commit3309e5b12280b27a6e632f9c5e43a38f8f0791bf (patch)
tree5029a3c6d8acd1a5ef889f1080a3370bb52082b0
parent0bd1927585fe043e2a9a97adbe188f59747e5f83 (diff)
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
-rw-r--r--src/MainWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 745b51f..9e1606d 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -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,