Fix a couple of crashes. Sync configuration information in SessionManager's destructor and fix problem with scroll optimisation. Not sure about that first one, it shouldn't do any harm, but I don't think it should be necessary either.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=670398
This commit is contained in:
Robert Knight
2007-06-01 11:24:11 +00:00
parent 53f7666e8e
commit 17d8d12249
4 changed files with 42 additions and 26 deletions

View File

@@ -166,6 +166,9 @@ SessionManager::~SessionManager()
while (infoIter.hasNext())
delete infoIter.next();
#warning "This prevents a crash to do with accessing a global static globalData() after destruction, but it is probably not the correct solution."
KGlobal::config()->sync();
}
const QList<Session*> SessionManager::sessions()