From b654d7b21df899767bad28cf520560a203e5dc15 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 29 Apr 2015 21:05:44 +0000 Subject: [PATCH] only reset GxsIdChooser to default item on first load. Fixes the bug of current identity that keeps changing in chat lobbies git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8190 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/gxs/GxsIdChooser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/gxs/GxsIdChooser.cpp b/retroshare-gui/src/gui/gxs/GxsIdChooser.cpp index e32f082f9..6dbbeb18f 100644 --- a/retroshare-gui/src/gui/gxs/GxsIdChooser.cpp +++ b/retroshare-gui/src/gui/gxs/GxsIdChooser.cpp @@ -218,11 +218,10 @@ void GxsIdChooser::loadPrivateIds() setItemData(count() - 1, QString("%1_%2").arg(TYPE_CREATE_ID).arg(str), ROLE_SORT); setItemData(count() - 1, TYPE_CREATE_ID, ROLE_TYPE); } - } + setDefaultItem(); + } mFirstLoad = false; - - setDefaultItem(); } void GxsIdChooser::setDefaultItem()