|
|
@ -39,6 +39,8 @@ void SendCoinsDialog::setModel(WalletModel *model) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this->model = model; |
|
|
|
this->model = model; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(model && model->getOptionsModel()) |
|
|
|
|
|
|
|
{ |
|
|
|
for(int i = 0; i < ui->entries->count(); ++i) |
|
|
|
for(int i = 0; i < ui->entries->count(); ++i) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); |
|
|
|
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); |
|
|
@ -47,8 +49,7 @@ void SendCoinsDialog::setModel(WalletModel *model) |
|
|
|
entry->setModel(model); |
|
|
|
entry->setModel(model); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(model && model->getOptionsModel()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance()); |
|
|
|
setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance()); |
|
|
|
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64))); |
|
|
|
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64))); |
|
|
|
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); |
|
|
|
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); |
|
|
|