Page MenuHomePhabricator

qt: Display warnings as rich text
ClosedPublic

Authored by PiRK on Aug 25 2021, 08:10.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC24178a7b8548: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable