From 8deae7398db0e5ea177f3950f4c07f355e554015 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 2 Oct 2024 00:06:10 +0200 Subject: [PATCH] build: fix WITH_SCANNER=OFF --- src/SendWidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/SendWidget.cpp b/src/SendWidget.cpp index a00c2cf..418e2b8 100644 --- a/src/SendWidget.cpp +++ b/src/SendWidget.cpp @@ -4,13 +4,12 @@ #include "SendWidget.h" #include "ui_SendWidget.h" -#include - #include "ColorScheme.h" #include "constants.h" #include "utils/AppData.h" #include "utils/config.h" #include "Icons.h" +#include "libwalletqt/Wallet.h" #include "libwalletqt/WalletManager.h" #if defined(WITH_SCANNER) @@ -29,8 +28,7 @@ SendWidget::SendWidget(Wallet *wallet, QWidget *parent) QString amount_rx = R"(^\d{0,8}[\.,]\d{0,12}|(all)$)"; QRegularExpression rx; rx.setPattern(amount_rx); - QValidator *validator = new QRegularExpressionValidator(rx, this); - ui->lineAmount->setValidator(validator); + ui->lineAmount->setValidator(new QRegularExpressionValidator(rx, this)); connect(m_wallet, &Wallet::initiateTransaction, this, &SendWidget::disableSendButton); connect(m_wallet, &Wallet::transactionCreated, this, &SendWidget::enableSendButton);