From ab814c2ed91acd76252ccc6d341852747420afc5 Mon Sep 17 00:00:00 2001 From: gg Date: Mon, 12 Jan 2026 14:37:45 -0500 Subject: [PATCH] remove duplicate TxImport dialogue --- src/MainWindow.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index e0645c4a..571efc5d 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -378,29 +378,6 @@ void MainWindow::initStatusBar() { if (m_wallet) { TxImportDialog dialog(this, m_wallet); dialog.exec(); - - auto *layout = new QVBoxLayout(&dialog); - layout->addWidget(new QLabel("Enter transaction ID:")); - - auto *lineEdit = new QLineEdit; - lineEdit->setMinimumWidth(600); - layout->addWidget(lineEdit); - - auto *btnBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); - connect(btnBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept); - connect(btnBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject); - layout->addWidget(btnBox); - - // Use fixed size based on content - prevents manual resizing - dialog.layout()->setSizeConstraint(QLayout::SetFixedSize); - - if (dialog.exec() == QDialog::Accepted) { - QString txid = lineEdit->text(); - if (!txid.isEmpty()) { - m_wallet->importTransaction(txid.trimmed()); - this->setStatusText("Transaction scanned: " + txid.trimmed().left(8) + "..."); - } - } } }); } -- 2.52.0