From b0ef61858883b362a64ec64d8660af593f7e5dfe Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Sun, 6 Apr 2008 07:54:17 +0000 Subject: [PATCH] Fix test which was producing erroneous warning about sessions still being alive on exit. svn path=/trunk/KDE/kdebase/apps/konsole/; revision=794023 --- src/SessionManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SessionManager.cpp b/src/SessionManager.cpp index 0b26c5cdb..71e20c9a9 100644 --- a/src/SessionManager.cpp +++ b/src/SessionManager.cpp @@ -222,8 +222,7 @@ void SessionManager::closeAll() } SessionManager::~SessionManager() { - // TODO This test sometimes fails when using KDevelop. Look into and fix it. - if (_sessions.count() == 0) + if (_sessions.count() > 0) { kWarning() << "Konsole SessionManager destroyed with sessions still alive"; // ensure that the Session doesn't later try to call back and do things to the