From f4d9546425ec38d78ef128a5bc7580d816b707ce Mon Sep 17 00:00:00 2001 From: laanwj <126646+laanwj@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:09:33 +0200 Subject: [PATCH] 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: edd46566bd66cea7d7f4116429fe1c11d2187ba2 --- src/qt/sendcoinsdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 1da03b8e3bc..55349b1fca0 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -33,6 +33,7 @@ #include #include +#include #include #include #include @@ -464,7 +465,7 @@ bool SendCoinsDialog::signWithExternalSigner(PartiallySignedTransaction& psbtx, return false; } if (err) { - tfm::format(std::cerr, "Failed to sign PSBT"); + qWarning() << "Failed to sign PSBT"; processSendCoinsReturn(WalletModel::TransactionCreationFailed); return false; }