Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | |||||
void BitcoinApplication::shutdownResult() { | void BitcoinApplication::shutdownResult() { | ||||
// Exit second main loop invocation after shutdown finished. | // Exit second main loop invocation after shutdown finished. | ||||
quit(); | quit(); | ||||
} | } | ||||
void BitcoinApplication::handleRunawayException(const QString &message) { | void BitcoinApplication::handleRunawayException(const QString &message) { | ||||
QMessageBox::critical( | QMessageBox::critical( | ||||
nullptr, "Runaway exception", | nullptr, "Runaway exception", | ||||
BitcoinGUI::tr("A fatal error occurred. Bitcoin can no longer continue " | BitcoinGUI::tr("A fatal error occurred. %1 can no longer continue " | ||||
"safely and will quit.") + | "safely and will quit.") | ||||
.arg(PACKAGE_NAME) + | |||||
QString("\n\n") + message); | QString("\n\n") + message); | ||||
::exit(EXIT_FAILURE); | ::exit(EXIT_FAILURE); | ||||
} | } | ||||
WId BitcoinApplication::getMainWinId() const { | WId BitcoinApplication::getMainWinId() const { | ||||
if (!window) { | if (!window) { | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines |