From e575097e346c5185874a63e8c7f18fad2c849588 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 17 Nov 2020 01:26:23 -0500 Subject: [PATCH] Missing line from 5b9e6497 to check schema integrity after crash --- chrome/content/zotero/xpcom/zotero.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 705253e771..e94b4241fb 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1216,6 +1216,9 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); this.crash = function (popup) { this.crashed = true; + // Check the database after restart + Zotero.Schema.setIntegrityCheckRequired(true).catch(e => this.logError(e)); + var reportErrorsStr = Zotero.getString('errorReport.reportErrors'); var reportInstructions = Zotero.getString('errorReport.reportInstructions', reportErrorsStr);