fixed bug with default chat lobby identity causing settings to show an empty list. Also fixed up GxsIdChooser

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8081 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-03-26 21:20:57 +00:00
parent 24c421c0b7
commit 9d2b6faf9c
6 changed files with 31 additions and 8 deletions

View file

@ -306,9 +306,10 @@ void GxsIdChooser::indexActivated(int index)
}
}
void GxsIdChooser::updateDisplay(bool complete)
void GxsIdChooser::updateDisplay(bool reset)
{
Q_UNUSED(complete)
if(reset)
mFirstLoad = true ;
/* Update identity list */
loadPrivateIds();

View file

@ -58,7 +58,7 @@ public:
protected:
virtual void showEvent(QShowEvent *event);
void updateDisplay(bool complete);
void updateDisplay(bool reset);
private slots:
void fillDisplay(bool complete);

View file

@ -272,8 +272,10 @@ ChatPage::load()
RsGxsId gxs_id ;
rsMsgs->getDefaultIdentityForChatLobby(gxs_id) ;
ui.chatLobbyIdentity_IC->loadIds(IDCHOOSER_ID_REQUIRED, gxs_id);
ui.chatLobbyIdentity_IC->setChosenId(gxs_id);
ui.chatLobbyIdentity_IC->setFlags(IDCHOOSER_ID_REQUIRED) ;
if(!gxs_id.isNull())
ui.chatLobbyIdentity_IC->setChosenId(gxs_id);
uint chatflags = Settings->getChatFlags();