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
This commit is contained in:
laanwj 2025-04-24 12:09:33 +02:00 committed by fanquake
parent 5aa4956cd3
commit f4d9546425
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -33,6 +33,7 @@
#include <fstream>
#include <memory>
#include <QDebug>
#include <QFontMetrics>
#include <QScrollBar>
#include <QSettings>
@ -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;
}