]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
TxConfAdv: fix setting description
authortobtoht <tob@featherwallet.org>
Sun, 16 Feb 2025 10:18:30 +0000 (11:18 +0100)
committertobtoht <tob@featherwallet.org>
Sun, 16 Feb 2025 10:18:30 +0000 (11:18 +0100)
src/dialog/TxConfAdvDialog.cpp
src/dialog/TxConfAdvDialog.h

index 4b8a13ae7134f18394e1bcc267c915c2abc1f98e..b886377c49b87f41a50b4a3a2f461a06387e4daa 100644 (file)
@@ -26,6 +26,7 @@ TxConfAdvDialog::TxConfAdvDialog(Wallet *wallet, const QString &description, QWi
     , m_exportSignedMenu(new QMenu(this))
     , m_exportTxKeyMenu(new QMenu(this))
     , m_offline(offline)
+    , m_description(description)
 {
     ui->setupUi(this);
 
@@ -214,7 +215,7 @@ void TxConfAdvDialog::txKeyCopy() {
 
 void TxConfAdvDialog::broadcastTransaction() {
     if (m_tx == nullptr) return;
-    m_wallet->commitTransaction(m_tx);
+    m_wallet->commitTransaction(m_tx, m_description);
     QDialog::accept();
 }
 
index e0faba5025f7998700e6ce1c356485c8587f0301..c7ab11184ea4ea0dbef874a64109b6826d792648 100644 (file)
@@ -50,6 +50,7 @@ private:
     QMenu *m_exportSignedMenu;
     QMenu *m_exportTxKeyMenu;
     QString m_txid;
+    QString m_description;
     bool m_offline;
 };