mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-24 12:39:25 +00:00
wallet::createTransactionAsync pass variables to listener
This commit is contained in:
parent
00ea5d6be9
commit
62060e183c
2 changed files with 3 additions and 3 deletions
|
@ -226,10 +226,10 @@ void Wallet::createTransactionAsync(const QString &dst_addr, const QString &paym
|
||||||
QFutureWatcher<PendingTransaction*> * watcher = new QFutureWatcher<PendingTransaction*>();
|
QFutureWatcher<PendingTransaction*> * watcher = new QFutureWatcher<PendingTransaction*>();
|
||||||
watcher->setFuture(future);
|
watcher->setFuture(future);
|
||||||
connect(watcher, &QFutureWatcher<PendingTransaction*>::finished,
|
connect(watcher, &QFutureWatcher<PendingTransaction*>::finished,
|
||||||
this, [this, watcher]() {
|
this, [this, watcher,dst_addr,payment_id,mixin_count]() {
|
||||||
QFuture<PendingTransaction*> future = watcher->future();
|
QFuture<PendingTransaction*> future = watcher->future();
|
||||||
watcher->deleteLater();
|
watcher->deleteLater();
|
||||||
emit transactionCreated(future.result());
|
emit transactionCreated(future.result(),dst_addr,payment_id,mixin_count);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ signals:
|
||||||
void historyModelChanged() const;
|
void historyModelChanged() const;
|
||||||
|
|
||||||
// emitted when transaction is created async
|
// emitted when transaction is created async
|
||||||
void transactionCreated(PendingTransaction * transaction);
|
void transactionCreated(PendingTransaction * transaction, QString address, QString paymentId, quint32 mixinCount);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Wallet(QObject * parent = nullptr);
|
Wallet(QObject * parent = nullptr);
|
||||||
|
|
Loading…
Reference in a new issue