Display the name of short invites properly

Instead of [Unknown], since the name is actually in the short invite.
This commit is contained in:
David Gerber 2022-02-05 18:12:04 +01:00 committed by GitHub
parent f125539d79
commit 63ee463086
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();