mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 21:59:02 -04:00
fixed certificate pasting bug
This commit is contained in:
parent
f5ee9c92c8
commit
97829de0ba
3 changed files with 25 additions and 13 deletions
|
@ -205,17 +205,9 @@ HomePage::~HomePage()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
void HomePage::getOwnCert(QString& invite,QString& description) const
|
||||
RetroshareInviteFlags HomePage::currentInviteFlags() const
|
||||
{
|
||||
RsPeerDetails detail;
|
||||
|
||||
if (!rsPeers->getPeerDetails(rsPeers->getOwnId(), detail))
|
||||
{
|
||||
std::cerr << "(EE) Cannot retrieve information about own certificate. That is a real problem!!" << std::endl;
|
||||
return ;
|
||||
}
|
||||
|
||||
RetroshareInviteFlags invite_flags = RetroshareInviteFlags::NOTHING;
|
||||
RetroshareInviteFlags invite_flags = RetroshareInviteFlags::NOTHING;
|
||||
|
||||
if(mIncludeLocIPact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::CURRENT_LOCAL_IP;
|
||||
|
@ -229,6 +221,21 @@ void HomePage::getOwnCert(QString& invite,QString& description) const
|
|||
if(mIncludeIPHistoryact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::FULL_IP_HISTORY;
|
||||
|
||||
return invite_flags;
|
||||
}
|
||||
void HomePage::getOwnCert(QString& invite,QString& description) const
|
||||
{
|
||||
RsPeerDetails detail;
|
||||
|
||||
if (!rsPeers->getPeerDetails(rsPeers->getOwnId(), detail))
|
||||
{
|
||||
std::cerr << "(EE) Cannot retrieve information about own certificate. That is a real problem!!" << std::endl;
|
||||
return ;
|
||||
}
|
||||
auto invite_flags = currentInviteFlags();
|
||||
|
||||
invite_flags |= RetroshareInviteFlags::SLICE_TO_80_CHARS;
|
||||
|
||||
if(!mUseOldFormatact->isChecked())
|
||||
{
|
||||
std::string short_invite;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue