From b4e499f04d1c3195a3c84175550c2532feb724bc Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 14 Nov 2018 09:09:51 -0800 Subject: [PATCH] Customfees validation --- src/sendtab.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 12b6970..b97a899 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -74,6 +74,10 @@ void MainWindow::setupSendTab() { ui->lblMinerFeeUSD->setText(Settings::getUSDFormat(txt.toDouble())); } }); + //Fees validator + auto feesValidator = new QDoubleValidator(0, 1, 8, ui->Amount1); + feesValidator->setNotation(QDoubleValidator::StandardNotation); + ui->minerFeeAmt->setValidator(feesValidator); // Font for the first Memo label QFont f = ui->Address1->font();