Skip to content

Commit

Permalink
rescan checkbox on scan critical error msgbox
Browse files Browse the repository at this point in the history
  • Loading branch information
goatpig committed Feb 13, 2015
1 parent e6e1e90 commit 06a5c93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion ArmoryQt.py
Expand Up @@ -6308,7 +6308,13 @@ def handleCppNotification(self, action, args):
elif action == WARNING_ACTION:
#something went wrong on the C++ side, create a message box to report
#it to the user
QMessageBox.critical(self, tr('BlockDataManager Warning'), \
if 'rescan' in args[0].lower() or 'rebuild' in args[0].lower():
result = MsgBoxWithDNAA(self, self, MSGBOX.Critical, 'BDM error!', args[0],
"Rebuild and rescan on next start", dnaaStartChk=True)
if result[1] == True:
touchFile( os.path.join(ARMORY_HOME_DIR, 'rebuild.flag') )
else:
QMessageBox.critical(self, tr('BlockDataManager Warning'), \
tr(args[0]), \
QMessageBox.Ok)
#this is a critical error reporting channel, should kill the app right
Expand Down
3 changes: 1 addition & 2 deletions cppForSwig/BDM_mainthread.cpp
Expand Up @@ -360,8 +360,7 @@ try

if (bdm->criticalError_.size())
{
callback->run(BDMAction_ErrorMsg, &bdm->criticalError_);
throw runtime_error("BDM encountered a critical error");
throw runtime_error(bdm->criticalError_.c_str());
}

if(bdv->rescanZC_)
Expand Down

0 comments on commit 06a5c93

Please sign in to comment.