mirror of
https://github.com/KDE/konsole.git
synced 2026-05-19 20:15:36 -04:00
Print a warning rather than aborting if the session count is non-zero at exit. Will look into this more carefully later.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=789684
This commit is contained in:
@@ -215,11 +215,22 @@ void SessionManager::closeAll()
|
||||
{
|
||||
// close remaining sessions
|
||||
foreach( Session* session , _sessions )
|
||||
{
|
||||
session->close();
|
||||
}
|
||||
_sessions.clear();
|
||||
}
|
||||
SessionManager::~SessionManager()
|
||||
{
|
||||
Q_ASSERT(_sessions.count() == 0);
|
||||
// TODO This test sometimes fails when using KDevelop. Look into and fix it.
|
||||
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
|
||||
// SessionManager
|
||||
foreach(Session* session , _sessions)
|
||||
disconnect(session , 0 , this , 0);
|
||||
}
|
||||
}
|
||||
|
||||
const QList<Session*> SessionManager::sessions()
|
||||
|
||||
Reference in New Issue
Block a user