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

List:       kde-commits
Subject:    branches/KDE/3.5/kdenetwork/kopete/kopete/addaccountwizard
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2005-09-16 13:28:52
Message-ID: 1126877332.446984.23272.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 461100 by wstephens:

Don't crash if there are no protocols installed/found and the user presses Next \
anyway.


 M  +3 -2      addaccountwizard.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/kopete/addaccountwizard/addaccountwizard.cpp \
#461099:461100 @@ -119,10 +119,11 @@
 
 void AddAccountWizard::next()
 {
-	if (currentPage() == m_selectService)
+	if ( currentPage() == m_selectService &&
+		   ( m_selectService->protocolListView->selectedItem() ) )
 	{
 		QListViewItem *lvi = m_selectService->protocolListView->selectedItem();
-        
+
 		m_proto = dynamic_cast<Kopete::Protocol \
*>(Kopete::PluginManager::self()->loadPlugin(m_protocolItems[lvi]->pluginName()));  \
if (!m_proto)  {


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

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