Skip to content

Commit

Permalink
UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Aug 7, 2024
1 parent b3412ba commit 3363b32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/qt/recover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Recover::Recover(QWidget *parent) :

connect(ui->enableDateSelection, &QCheckBox::toggled, this, &Recover::updateDateInputState);
ui->dateInput->setDisplayFormat("dd-MM-yyyy");
ui->dateInput->setMinimumDate(QDate(2020, 3, 23));
ui->dateInput->setMinimumDate(QDate(2019, 12, 11));
}

Recover::~Recover()
Expand Down Expand Up @@ -64,14 +64,14 @@ void Recover::setCreateNew()

void Recover::updateDateInputState(bool checked) {
ui->dateInput->setEnabled(checked);
ui->dateInput->setMinimumDate(QDate(2020, 3, 23));
ui->dateInput->setMinimumDate(QDate(2019, 12, 11));
}

void Recover::on_createNew_clicked()
{
setCreateNew();
ui->dateInput->setDisplayFormat("dd-MM-yyyy");
ui->dateInput->setDate(QDate(2020, 3, 23));
ui->dateInput->setDate(QDate(2019, 12, 11));
}

void Recover::on_recoverExisting_clicked()
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,7 @@ CBlockIndex* CWallet::ScanForWalletTransactions(CBlockIndex *pindexStart, bool f
CBlockIndex* mnemonicStartBlock = chainActive[chainParams.GetConsensus().nMnemonicBlock];
targetHeight = GetBlockHeightByDate(mnemonicStartBlock, wcdate);
if (!wcdate.empty()) {
if (targetHeight <= 0) {
if (targetHeight < chainParams.GetConsensus().nMnemonicBlock) {
targetHeight = chainParams.GetConsensus().nMnemonicBlock;
}
pindex = chainActive[targetHeight];
Expand Down

0 comments on commit 3363b32

Please sign in to comment.