Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 514 Lines • ▼ Show 20 Lines | #ifdef ENABLE_WALLET | ||||
SLOT(handlePaymentRequest(SendCoinsRecipient))); | SLOT(handlePaymentRequest(SendCoinsRecipient))); | ||||
connect(window, SIGNAL(receivedURI(QString)), paymentServer, | connect(window, SIGNAL(receivedURI(QString)), paymentServer, | ||||
SLOT(handleURIOrFile(QString))); | SLOT(handleURIOrFile(QString))); | ||||
connect(paymentServer, SIGNAL(message(QString, QString, unsigned int)), | connect(paymentServer, SIGNAL(message(QString, QString, unsigned int)), | ||||
window, SLOT(message(QString, QString, unsigned int))); | window, SLOT(message(QString, QString, unsigned int))); | ||||
QTimer::singleShot(100, paymentServer, SLOT(uiReady())); | QTimer::singleShot(100, paymentServer, SLOT(uiReady())); | ||||
#endif | #endif | ||||
} else { | } else { | ||||
// Exit main loop. | // Make sure splash screen doesn't stick around during shutdown. | ||||
Q_EMIT splashFinished(window); | |||||
// Exit first main loop invocation. | |||||
quit(); | quit(); | ||||
} | } | ||||
} | } | ||||
void BitcoinApplication::shutdownResult() { | void BitcoinApplication::shutdownResult() { | ||||
// Exit main loop 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( | ||||
0, "Runaway exception", | 0, "Runaway exception", | ||||
BitcoinGUI::tr("A fatal error occurred. Bitcoin can no longer continue " | BitcoinGUI::tr("A fatal error occurred. Bitcoin can no longer continue " | ||||
"safely and will quit.") + | "safely and will quit.") + | ||||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |