Do not ask a UI question from bitcoind

This commit is contained in:
Pieter Wuille
2016-06-24 16:35:21 +02:00
committed by lateminer
parent b63095623e
commit 39cb6575c8
4 changed files with 13 additions and 1 deletions

View File

@@ -1368,8 +1368,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
if (!fLoaded) {
// first suggest a reindex
if (!fReset) {
bool fRet = uiInterface.ThreadSafeMessageBox(
bool fRet = uiInterface.ThreadSafeQuestion(
strLoadError + ".\n\n" + _("Do you want to rebuild the block database now?"),
strLoadError + ".\nPlease restart with -reindex or -reindex-chainstate to recover.",
"", CClientUIInterface::MSG_ERROR | CClientUIInterface::BTN_ABORT);
if (fRet) {
fReindex = true;