diff options
| author | Jacob Brydolf <jacob@brydolf.net> | 2016-11-08 18:02:07 +0100 |
|---|---|---|
| committer | Jacob Brydolf <jacob@brydolf.net> | 2016-11-10 16:11:58 +0100 |
| commit | 62060e183c634ab557a028a6e083d15f6f5a06d2 (patch) | |
| tree | 7832a5b5521a2b31a70715a1a9c86541e1547cfa | |
| parent | 00ea5d6be958159ba3cecb058b56bc4e23fc571d (diff) | |
| download | monzero-gui-62060e183c634ab557a028a6e083d15f6f5a06d2.tar.gz monzero-gui-62060e183c634ab557a028a6e083d15f6f5a06d2.tar.xz monzero-gui-62060e183c634ab557a028a6e083d15f6f5a06d2.zip | |
wallet::createTransactionAsync pass variables to listener
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 4 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 8ec8c663..9eb1aae1 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -226,10 +226,10 @@ void Wallet::createTransactionAsync(const QString &dst_addr, const QString &paym QFutureWatcher<PendingTransaction*> * watcher = new QFutureWatcher<PendingTransaction*>(); watcher->setFuture(future); connect(watcher, &QFutureWatcher<PendingTransaction*>::finished, - this, [this, watcher]() { + this, [this, watcher,dst_addr,payment_id,mixin_count]() { QFuture<PendingTransaction*> future = watcher->future(); watcher->deleteLater(); - emit transactionCreated(future.result()); + emit transactionCreated(future.result(),dst_addr,payment_id,mixin_count); }); } diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index a50a895f..e9eb71d7 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -171,7 +171,7 @@ signals: void historyModelChanged() const; // emitted when transaction is created async - void transactionCreated(PendingTransaction * transaction); + void transactionCreated(PendingTransaction * transaction, QString address, QString paymentId, quint32 mixinCount); private: Wallet(QObject * parent = nullptr); |
