Skip to content

Commit

Permalink
[Qt] Initialize isLoading to false for CS view
Browse files Browse the repository at this point in the history
Loading of the cold staking delegations list checks to see if `isLoading`
is true, and exit's out if it is. this check is used to prevent double
loading, but on some systems `isLoading` is initialized as `true`, so
the loading of CS delegations will never occur.

This changes to initialization to be explicitly `false`.

Github-Pull: #1253
Rebased-From: d837803
  • Loading branch information
Fuzzbawls committed Jan 11, 2020
1 parent b7c63b8 commit 10bbf9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/pivx/coldstakingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class CSDelegationHolder : public FurListRow<QWidget*>

ColdStakingWidget::ColdStakingWidget(PIVXGUI* parent) :
PWidget(parent),
ui(new Ui::ColdStakingWidget)
ui(new Ui::ColdStakingWidget),
isLoading(false)
{
ui->setupUi(this);
this->setStyleSheet(parent->styleSheet());
Expand Down

0 comments on commit 10bbf9e

Please sign in to comment.