File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,13 @@ void PSBTOperationsDialog::saveTransaction() {
167
167
}
168
168
169
169
void PSBTOperationsDialog::updateTransactionDisplay () {
170
- m_ui->transactionDescription ->setText (QString::fromStdString ( renderTransaction (m_transaction_data) ));
170
+ m_ui->transactionDescription ->setText (renderTransaction (m_transaction_data));
171
171
showTransactionStatus (m_transaction_data);
172
172
}
173
173
174
- std::string PSBTOperationsDialog::renderTransaction (const PartiallySignedTransaction &psbtx)
174
+ QString PSBTOperationsDialog::renderTransaction (const PartiallySignedTransaction &psbtx)
175
175
{
176
- QString tx_description = " " ;
176
+ QString tx_description;
177
177
CAmount totalAmount = 0 ;
178
178
for (const CTxOut& out : psbtx.tx ->vout ) {
179
179
CTxDestination address;
@@ -217,7 +217,7 @@ std::string PSBTOperationsDialog::renderTransaction(const PartiallySignedTransac
217
217
tx_description.append (tr (" Transaction has %1 unsigned inputs." ).arg (QString::number (num_unsigned)));
218
218
}
219
219
220
- return tx_description. toStdString () ;
220
+ return tx_description;
221
221
}
222
222
223
223
void PSBTOperationsDialog::showStatus (const QString &msg, StatusLevel level) {
Original file line number Diff line number Diff line change 6
6
#define BITCOIN_QT_PSBTOPERATIONSDIALOG_H
7
7
8
8
#include < QDialog>
9
+ #include < QString>
9
10
10
11
#include < psbt.h>
11
12
#include < qt/clientmodel.h>
@@ -46,7 +47,7 @@ public Q_SLOTS:
46
47
47
48
size_t couldSignInputs (const PartiallySignedTransaction &psbtx);
48
49
void updateTransactionDisplay ();
49
- std::string renderTransaction (const PartiallySignedTransaction &psbtx);
50
+ QString renderTransaction (const PartiallySignedTransaction &psbtx);
50
51
void showStatus (const QString &msg, StatusLevel level);
51
52
void showTransactionStatus (const PartiallySignedTransaction &psbtx);
52
53
};
You can’t perform that action at this time.
0 commit comments