Skip to content

Commit

Permalink
build: fix WITH_SCANNER=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Oct 1, 2024
1 parent 8e31b2b commit 8deae73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/SendWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
#include "SendWidget.h"
#include "ui_SendWidget.h"

#include <QMessageBox>

#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)
Expand All @@ -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);
Expand Down

0 comments on commit 8deae73

Please sign in to comment.