]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
History: grab tx key for tx proof dialog
authortobtoht <thotbot@protonmail.com>
Thu, 19 Aug 2021 18:06:29 +0000 (20:06 +0200)
committertobtoht <thotbot@protonmail.com>
Wed, 15 Sep 2021 21:46:04 +0000 (23:46 +0200)
src/HistoryWidget.cpp

index bf835d1383676fcde901ee70e606575f459ec746..4499a5d5e53b93abf6457fbc0c35feaae5254dd5 100644 (file)
@@ -144,9 +144,9 @@ void HistoryWidget::createTxProof() {
     auto *tx = ui->history->currentEntry();
     if (!tx) return;
 
-    auto *dialog = new TxProofDialog(this, m_ctx, tx);
-    dialog->exec();
-    dialog->deleteLater();
+    TxProofDialog dialog{this, m_ctx, tx};
+    dialog.getTxKey();
+    dialog.exec();
 }
 
 void HistoryWidget::copy(copyField field) {