[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/config/chatwindow
From:       Dennis Nienhüser <earthwings () gentoo ! org>
Date:       2008-06-23 19:46:24
Message-ID: 1214250384.339130.16976.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 823658 by nienhueser:

Make sure there is a valid KComponentData which KNS2 relies on.
BUG: 163382


 M  +5 -0      chatwindowconfig.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/config/chatwindow/chatwindowconfig.cpp #823657:823658
@@ -476,6 +476,11 @@
 	KNS::Engine *engine = new KNS::Engine();
 	engine->init(configGrp.config()->name());
 	
+	// FIXME: Upon closing the Settings KCMultiDialog all KCMs are deleted and when reopening
+	// the settings dialog there is no active valid KComponentData, which KNS2 relies on.
+	// Forcing an active one below works around bug 163382, but the problem is somewhere else.
+	KGlobal::setActiveComponent(KopeteChatWindowConfigFactory::componentData());
+
 	KNS::Entry::List entries = engine->downloadDialogModal(this);
 
 	if ( entries.size() > 0 )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic