Merge pull request #1 from zapek/display-shortinvite-name

Display the name of short invites properly
This commit is contained in:
David Gerber 2022-02-05 18:18:36 +01:00 committed by GitHub
commit 4a133f903c
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();