Merge pull request #2580 from zapek/master

Display the name of short invites properly
This commit is contained in:
G10h4ck 2022-02-05 18:41:48 +01:00 committed by GitHub
commit 5fdeeb788a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,7 +599,7 @@ void ConnectFriendWizard::initializePage(int id)
if(mIsShortInvite)
{
if(ui->nameEdit->text().isEmpty())
ui->nameEdit->setText(tr("[Unknown]"));
ui->nameEdit->setText(QString::fromUtf8(peerDetails.name.c_str()));
ui->addKeyToKeyring_CB->setChecked(false);
ui->addKeyToKeyring_CB->setEnabled(false);
ui->signersEdit->hide();