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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/config/behavior
From:       Dennis Nienhüser <earthwings () gentoo ! org>
Date:       2008-05-18 22:21:28
Message-ID: 1211149288.890487.2256.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 809448 by nienhueser:

Do not crash if no view plugin can be loaded
CCBUG: 161078


 M  +4 -1      behaviorconfig.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/config/behavior/behaviorconfig.cpp \
#809447:809448 @@ -99,7 +99,10 @@
 	Kopete::BehaviorSettings::self()->setAutoAwayTimeout( \
mPrfsAway->mAutoAwayTimeout->value() * 60 );  
 	// "Chat" TAB ===============================================================
-	Kopete::BehaviorSettings::self()->setViewPlugin(viewPlugins[mPrfsChat->viewPlugin->currentIndex()].pluginName() \
); +	if ( viewPlugins.size() > 0 )
+	{
+		Kopete::BehaviorSettings::self()->setViewPlugin(viewPlugins[mPrfsChat->viewPlugin->currentIndex()].pluginName() \
); +	}
 
 	Kopete::BehaviorSettings::self()->writeConfig();
 


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

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