From kde-commits Sat Dec 31 21:25:37 2005 From: Jakub Stachowski Date: Sat, 31 Dec 2005 21:25:37 +0000 To: kde-commits Subject: KDE/kdenetwork/kopete/libkopete Message-Id: <1136064337.770941.13686.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113606434729984 SVN commit 492983 by qbast: Fix signal/slot connection M +2 -2 kopeteaccountmanager.cpp M +1 -1 kopeteaccountmanager.h --- trunk/KDE/kdenetwork/kopete/libkopete/kopeteaccountmanager.cpp #492982:492983 @@ -214,10 +214,10 @@ return account; } -void AccountManager::unregisterAccount( Account *account ) +void AccountManager::unregisterAccount( const Account *account ) { kdDebug( 14010 ) << k_funcinfo << "Unregistering account " << account->accountId() << endl; - d->accounts.remove( account ); + d->accounts.removeAll( const_cast(account) ); emit accountUnregistered( account ); } --- trunk/KDE/kdenetwork/kopete/libkopete/kopeteaccountmanager.h #492982:492983 @@ -202,7 +202,7 @@ * \internal * Unregister the account. */ - void unregisterAccount( Kopete::Account *account ); + void unregisterAccount( const Kopete::Account *account ); private: bool isAnyAccountConnected();