Commit 64a8755 1 parent af7e365 commit 64a8755 Copy full SHA for 64a8755
File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -426,6 +426,16 @@ void BitcoinApplication::handleRunawayException(const QString &message)
426
426
::exit (EXIT_FAILURE);
427
427
}
428
428
429
+ void BitcoinApplication::handleNonFatalException (const QString& message)
430
+ {
431
+ assert (QThread::currentThread () == thread ());
432
+ QMessageBox::warning (
433
+ nullptr , tr (" Internal error" ),
434
+ tr (" An internal error occurred. %1 will attempt to continue safely. This is "
435
+ " an unexpected bug which can be reported as described below." ).arg (PACKAGE_NAME) %
436
+ QLatin1String (" <br><br>" ) % GUIUtil::MakeHtmlLink (message, PACKAGE_BUGREPORT));
437
+ }
438
+
429
439
WId BitcoinApplication::getMainWinId () const
430
440
{
431
441
if (!window)
Original file line number Diff line number Diff line change @@ -99,6 +99,12 @@ public Q_SLOTS:
99
99
// / Handle runaway exceptions. Shows a message box with the problem and quits the program.
100
100
void handleRunawayException (const QString &message);
101
101
102
+ /* *
103
+ * A helper function that shows a message box
104
+ * with details about a non-fatal exception.
105
+ */
106
+ void handleNonFatalException (const QString& message);
107
+
102
108
Q_SIGNALS:
103
109
void requestedInitialize ();
104
110
void requestedShutdown ();
You can’t perform that action at this time.
0 commit comments