Skip to content

Commit

Permalink
Fix balanceChanged signal (was updated with 0.10)
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed Mar 31, 2015
1 parent 23c87b6 commit 2ef2849
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/qt/balancesview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void BalancesView::setWalletModel(WalletModel *model)
{
if (model != NULL) {
this->walletModel = model;
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(balancesUpdated()));
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(balancesUpdated()));
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/qt/metadexcanceldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,10 @@ void MetaDExCancelDialog::rdoCancelEverything()
void MetaDExCancelDialog::setModel(WalletModel *model)
{
this->model = model;
// connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(balancesUpdated()));
}

void MetaDExCancelDialog::sendCancelTransaction()
{

// TODO - implement creation of cancels
}

2 changes: 1 addition & 1 deletion src/qt/metadexdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ MetaDExDialog::MetaDExDialog(QWidget *parent) :
void MetaDExDialog::setModel(WalletModel *model)
{
this->model = model;
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(OrderRefresh()));
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(OrderRefresh()));
}

void MetaDExDialog::OrderRefresh()
Expand Down
2 changes: 1 addition & 1 deletion src/qt/orderhistorydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void OrderHistoryDialog::Update()
void OrderHistoryDialog::setModel(WalletModel *model)
{
this->model = model;
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(Update()));
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(Update()));
}

void OrderHistoryDialog::contextualMenu(const QPoint &point)
Expand Down
2 changes: 1 addition & 1 deletion src/qt/sendmpdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void SendMPDialog::setWalletModel(WalletModel *model)
{
if (model != NULL) {
this->walletModel = model;
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(balancesUpdated()));
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(balancesUpdated()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/txhistorydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void TXHistoryDialog::setWalletModel(WalletModel *model)
{
if (model != NULL) {
this->walletModel = model;
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(UpdateHistory()));
connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(UpdateHistory()));
}
}

Expand Down

0 comments on commit 2ef2849

Please sign in to comment.