moved tag initialisation to msgservice constructor to deal to situation where loadlist() is not call

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3529 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-09-23 21:27:34 +00:00
parent 2ef645b6a5
commit 8385984d78

View File

@ -58,6 +58,10 @@ p3MsgService::p3MsgService(p3ConnectMgr *cm)
mConnMgr(cm), msgChanged(1), mMsgUniqueId(1)
{
addSerialType(new RsMsgSerialiser());
/* Initialize standard tag types */
if(cm)
initStandardTagTypes();
}
uint32_t p3MsgService::getNewUniqueMsgId()
@ -414,9 +418,6 @@ bool p3MsgService::loadList(std::list<RsItem*> load)
}
}
/* Initialize standard tag types */
initStandardTagTypes();
return true;
}