Browse Source

qt: Poll ShutdownTimer after init is done

Github-Pull: #12377
Rebased-From: 2222bf02c94a10387c318b295982719eb07b8d06
Tree-SHA512: 575c10d9f043e2843616b989daaecfb357482445bc44b9f3af2fe0d891bb36b5ccb572f326703ea85291d56b9f6e8f4828496099b05889daea2277ad38aa0d0e
0.16
MarcoFalke 7 years ago committed by Wladimir J. van der Laan
parent
commit
604f289f71
No known key found for this signature in database
GPG Key ID: 1E4AED62986CD25D
  1. 2
      src/qt/bitcoin.cpp

2
src/qt/bitcoin.cpp

@ -388,7 +388,6 @@ void BitcoinApplication::createWindow(const NetworkStyle *networkStyle)
pollShutdownTimer = new QTimer(window); pollShutdownTimer = new QTimer(window);
connect(pollShutdownTimer, SIGNAL(timeout()), window, SLOT(detectShutdown())); connect(pollShutdownTimer, SIGNAL(timeout()), window, SLOT(detectShutdown()));
pollShutdownTimer->start(200);
} }
void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle)
@ -515,6 +514,7 @@ void BitcoinApplication::initializeResult(bool success)
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
pollShutdownTimer->start(200);
} else { } else {
quit(); // Exit main loop quit(); // Exit main loop
} }

Loading…
Cancel
Save