Skip to content

Commit f4d9546

Browse files
laanwjfanquake
authored andcommitted
qt: Replace stray tfm::format to cerr with qWarning
GUI warnings should go to the log, not to the console (which may not be connected at all). Github-Pull: gui#868 Rebased-From: edd4656
1 parent 5aa4956 commit f4d9546

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <fstream>
3434
#include <memory>
3535

36+
#include <QDebug>
3637
#include <QFontMetrics>
3738
#include <QScrollBar>
3839
#include <QSettings>
@@ -464,7 +465,7 @@ bool SendCoinsDialog::signWithExternalSigner(PartiallySignedTransaction& psbtx,
464465
return false;
465466
}
466467
if (err) {
467-
tfm::format(std::cerr, "Failed to sign PSBT");
468+
qWarning() << "Failed to sign PSBT";
468469
processSendCoinsReturn(WalletModel::TransactionCreationFailed);
469470
return false;
470471
}

0 commit comments

Comments
 (0)