mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
fixed certificate pasting bug
This commit is contained in:
parent
f5ee9c92c8
commit
97829de0ba
3 changed files with 25 additions and 13 deletions
|
@ -570,9 +570,13 @@ RetroShareLink RetroShareLink::createCertificate(const RsPeerId& ssl_id)
|
|||
|
||||
if(rsPeers->getOwnId() == ssl_id) // in this case, use application-wide parameters set in HomePage
|
||||
{
|
||||
QString invite,description;
|
||||
static_cast<HomePage*>(MainWindow::getPage(MainWindow::Home))->getOwnCert(invite,description);
|
||||
link._radix = invite;
|
||||
QString description;
|
||||
auto invite_flags = static_cast<HomePage*>(MainWindow::getPage(MainWindow::Home))->currentInviteFlags();
|
||||
|
||||
invite_flags &= ~RetroshareInviteFlags::SLICE_TO_80_CHARS;
|
||||
invite_flags |= RetroshareInviteFlags::RADIX_FORMAT;
|
||||
|
||||
link._radix = QString::fromUtf8(rsPeers->GetRetroshareInvite(ssl_id,invite_flags).c_str());
|
||||
}
|
||||
else
|
||||
link._radix = QString::fromUtf8(rsPeers->GetRetroshareInvite(ssl_id).c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue