HomePhabricator

qt: Display warnings as rich text

Description

qt: Display warnings as rich text

Summary: This is a backport of core#18898

Test Plan:

diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index dd46393259..62fef6c7bd 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -789,6 +789,9 @@ int GuiMain(int argc, char *argv[]) {
             QObject::tr("%1 didn't yet exit safely...").arg(PACKAGE_NAME),
             (HWND)app.getMainWinId());
 #endif
+        app.handleRunawayException(
+            QString::fromStdString("<hr />Fake warning"));
         app.exec();
         app.requestShutdown(config);
         app.exec();

Compile and run bitcoin-qt

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9932

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on May 7 2020, 04:41
PiRKCommitted on Aug 25 2021, 09:46
PiRKPushed on Aug 25 2021, 09:46
Reviewer
Restricted Project
Differential Revision
D9932: qt: Display warnings as rich text
Parents
rABC075adcca138d: wallet: Fix for exported confirmation field in payment to self transactions
Branches
Unknown
Tags
Unknown

Event Timeline

PiRK committed rABC24178a7b8548: qt: Display warnings as rich text (authored by Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>).Aug 25 2021, 09:46