Skip to content

Commit

Permalink
fix: use && in governance urls instead &
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Aug 5, 2024
1 parent 1e585b1 commit c36bb8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/governancelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c36bb8e

Please sign in to comment.