Fix test which was producing erroneous warning about sessions still being alive on exit.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=794023
This commit is contained in:
Robert Knight
2008-04-06 07:54:17 +00:00
parent eedc4eb849
commit b0ef618588

View File

@@ -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