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