Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 787 Lines • ▼ Show 20 Lines | try { | ||||
// A dialog with detailed error will have been shown by InitError() | // A dialog with detailed error will have been shown by InitError() | ||||
return EXIT_FAILURE; | return EXIT_FAILURE; | ||||
} | } | ||||
app.requestInitialize(config, httpRPCRequestProcessor); | app.requestInitialize(config, httpRPCRequestProcessor); | ||||
#if defined(Q_OS_WIN) | #if defined(Q_OS_WIN) | ||||
WinShutdownMonitor::registerShutdownBlockReason( | WinShutdownMonitor::registerShutdownBlockReason( | ||||
QObject::tr("%1 didn't yet exit safely...") | QObject::tr("%1 didn't yet exit safely...") | ||||
.arg(QObject::tr(PACKAGE_NAME)), | .arg(QObject::tr(PACKAGE_NAME)), | ||||
static_cast<HWND>(app.getMainWinId())); | (HWND)app.getMainWinId()); | ||||
#endif | #endif | ||||
app.exec(); | app.exec(); | ||||
app.requestShutdown(config); | app.requestShutdown(config); | ||||
app.exec(); | app.exec(); | ||||
return app.getReturnValue(); | return app.getReturnValue(); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
PrintExceptionContinue(&e, "Runaway exception"); | PrintExceptionContinue(&e, "Runaway exception"); | ||||
app.handleRunawayException(QString::fromStdString(GetWarnings("gui"))); | app.handleRunawayException(QString::fromStdString(GetWarnings("gui"))); | ||||
} catch (...) { | } catch (...) { | ||||
PrintExceptionContinue(nullptr, "Runaway exception"); | PrintExceptionContinue(nullptr, "Runaway exception"); | ||||
app.handleRunawayException(QString::fromStdString(GetWarnings("gui"))); | app.handleRunawayException(QString::fromStdString(GetWarnings("gui"))); | ||||
} | } | ||||
return EXIT_FAILURE; | return EXIT_FAILURE; | ||||
} | } | ||||
#endif // BITCOIN_QT_TEST | #endif // BITCOIN_QT_TEST |