Start the CreateLobbyDialog from the list of chat lobbies with the privacy level of the selected item.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4866 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-01-30 23:20:42 +00:00
parent 75f152a21f
commit 55d53e6dd4
3 changed files with 27 additions and 5 deletions

View file

@ -30,7 +30,7 @@
#include "gui/common/PeerDefs.h"
#include "ChatDialog.h"
CreateLobbyDialog::CreateLobbyDialog(const std::list<std::string>& peer_list,QWidget *parent, Qt::WFlags flags) :
CreateLobbyDialog::CreateLobbyDialog(const std::list<std::string>& peer_list, int privacyLevel, QWidget *parent, Qt::WFlags flags) :
QDialog(parent, flags)
{
ui = new Ui::CreateLobbyDialog() ;
@ -56,6 +56,10 @@ CreateLobbyDialog::CreateLobbyDialog(const std::list<std::string>& peer_list,QWi
ui->keyShareList->start();
ui->keyShareList->setSelectedSslIds(peer_list, false);
if (privacyLevel) {
ui->security_CB->setCurrentIndex((privacyLevel == RS_CHAT_LOBBY_PRIVACY_LEVEL_PUBLIC) ? 0 : 1);
}
checkTextFields();
}