|
|
|
@ -28,6 +28,8 @@
|
|
|
|
|
#include <wallet/fees.h>
|
|
|
|
|
#include <wallet/wallet.h>
|
|
|
|
|
|
|
|
|
|
#include <validation.h>
|
|
|
|
|
|
|
|
|
|
#include <QFontMetrics>
|
|
|
|
|
#include <QScrollBar>
|
|
|
|
|
#include <QSettings>
|
|
|
|
@ -134,7 +136,7 @@ void SendCoinsDialog::setClientModel(ClientModel *_clientModel)
|
|
|
|
|
this->clientModel = _clientModel;
|
|
|
|
|
|
|
|
|
|
if (_clientModel) {
|
|
|
|
|
connect(_clientModel, &ClientModel::numBlocksChanged, this, &SendCoinsDialog::updateSmartFeeLabel);
|
|
|
|
|
connect(_clientModel, &ClientModel::numBlocksChanged, this, &SendCoinsDialog::updateNumberOfBlocks);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -744,6 +746,12 @@ void SendCoinsDialog::updateCoinControlState(CCoinControl& ctrl)
|
|
|
|
|
ctrl.fAllowWatchOnly = model->wallet().privateKeysDisabled();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SendCoinsDialog::updateNumberOfBlocks(int count, const QDateTime& blockDate, double nVerificationProgress, bool headers, SynchronizationState sync_state) {
|
|
|
|
|
if (sync_state == SynchronizationState::POST_INIT) {
|
|
|
|
|
updateSmartFeeLabel();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SendCoinsDialog::updateSmartFeeLabel()
|
|
|
|
|
{
|
|
|
|
|
if(!model || !model->getOptionsModel())
|
|
|
|
|