fix: use && in governance urls instead &

This commit is contained in:
Konstantin Akimov 2024-07-13 12:39:49 +07:00
parent 1e585b1987
commit c36bb8e6fb
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -387,8 +387,11 @@ void GovernanceList::showProposalContextMenu(const QPoint& pos)
return;
}
QString proposal_url = proposal->url();
proposal_url.replace(QChar('&'), QString("&&"));
// right click menu with option to open proposal url
QAction* openProposalUrl = new QAction(proposal->url(), this);
QAction* openProposalUrl = new QAction(proposal_url, this);
proposalContextMenu->clear();
proposalContextMenu->addAction(openProposalUrl);
connect(openProposalUrl, &QAction::triggered, proposal, &Proposal::openUrl);