Skip to content

Commit

Permalink
[UI] Clean proposal list when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Warrows committed Dec 26, 2018
1 parent bbf3274 commit f7674fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/governancepage.cpp
Expand Up @@ -108,6 +108,10 @@ void GovernancePage::SendVote(std::string strHash, int nVote)

void GovernancePage::updateProposalList(bool fForce)
{
QLayoutItem *item;
while ((item = ui->proposalGrid->takeAt(0)))
delete item;

int nCountMyMasternodes = masternodeConfig.getCount();
std::vector<CBudgetProposal*> winningProps = budget.GetAllProposals();
int nRow = 0;
Expand Down

0 comments on commit f7674fb

Please sign in to comment.