mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
allow 30 unicode symbols for identity name, instead of 30 bytes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8205 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
735a27f8da
commit
e663fa608c
2 changed files with 5 additions and 4 deletions
|
@ -59,6 +59,7 @@ extern RsIdentity *rsIdentity;
|
|||
|
||||
#define RSRECOGN_MAX_TAGINFO 5
|
||||
|
||||
// Unicode symbols. NOT utf-8 bytes, because of multi byte characters
|
||||
#define RSID_MAXIMUM_NICKNAME_SIZE 30
|
||||
|
||||
std::string rsIdTypeToString(uint32_t idtype);
|
||||
|
|
|
@ -480,7 +480,7 @@ void IdEditDialog::submit()
|
|||
|
||||
void IdEditDialog::createId()
|
||||
{
|
||||
std::string groupname = ui->lineEdit_Nickname->text().toUtf8().constData();
|
||||
QString groupname = ui->lineEdit_Nickname->text();
|
||||
|
||||
if (groupname.size() < 2)
|
||||
{
|
||||
|
@ -495,7 +495,7 @@ void IdEditDialog::createId()
|
|||
return;
|
||||
}
|
||||
RsIdentityParameters params;
|
||||
params.nickname = groupname;
|
||||
params.nickname = groupname.toUtf8().constData();
|
||||
params.isPgpLinked = (ui->radioButton_GpgId->isChecked());
|
||||
|
||||
if (!mAvatar.isNull())
|
||||
|
@ -535,7 +535,7 @@ void IdEditDialog::idCreated(uint32_t token)
|
|||
void IdEditDialog::updateId()
|
||||
{
|
||||
/* submit updated details */
|
||||
std::string groupname = ui->lineEdit_Nickname->text().toUtf8().constData();
|
||||
QString groupname = ui->lineEdit_Nickname->text();
|
||||
|
||||
if (groupname.size() < 2)
|
||||
{
|
||||
|
@ -550,7 +550,7 @@ void IdEditDialog::updateId()
|
|||
return;
|
||||
}
|
||||
|
||||
mEditGroup.mMeta.mGroupName = groupname;
|
||||
mEditGroup.mMeta.mGroupName = groupname.toUtf8().constData();
|
||||
|
||||
if (!mAvatar.isNull())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue