r3001 - trunk/minisip/minisip/gui/gtkgui

mikma at minisip.org mikma at minisip.org
Sun Dec 10 16:33:16 CET 2006


Author: mikma
Date: 2006-12-10 16:33:15 +0100 (Sun, 10 Dec 2006)
New Revision: 3001

Modified:
   trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx
Log:
Copy PSK and SipSim from old identity in when saving AccoundsList


Modified: trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx
===================================================================
--- trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx	2006-12-10 13:19:19 UTC (rev 3000)
+++ trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx	2006-12-10 15:33:15 UTC (rev 3001)
@@ -137,6 +137,11 @@
 
 		identity->getSipProxy()->setDefaultExpires( (*iter)[columns->registerExpires] );
 
+		MRef<SipIdentity *> oldId = (*iter)[columns->identity];
+		// Copy PSK and SipSim from old identity
+		identity->setPsk( oldId->getPsk() );
+		identity->setSim( oldId->getSim() );
+
 		config->identities.push_back( identity );
 	}
 	



More information about the Minisip-devel mailing list