From 6150a08dc199253795b82ee68bcf52a61dbdbeff Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 30 Oct 2017 16:02:36 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20logged=20error=20clicking=20below=20list?= =?UTF-8?q?=20in=20"Choose=20Libraries=E2=80=A6"=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/content/zotero/preferences/preferences_sync.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js index b969bf226..eaf97c92d 100644 --- a/chrome/content/zotero/preferences/preferences_sync.js +++ b/chrome/content/zotero/preferences/preferences_sync.js @@ -225,7 +225,8 @@ Zotero_Preferences.Sync = { var row = {}, col = {}, child = {}; tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child); - if (col.value.element.id == 'libraries-to-sync-checked') { + // Below the list or on checkmark column + if (!col.value || col.value.element.id == 'libraries-to-sync-checked') { return; } // if dblclicked anywhere but the checkbox update pref @@ -238,7 +239,8 @@ Zotero_Preferences.Sync = { var row = {}, col = {}, child = {}; tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, child); - if (col.value.element.id != 'libraries-to-sync-checked') { + // Below the list or not on checkmark column + if (!col.value || col.value.element.id != 'libraries-to-sync-checked') { return; } // if clicked on checkbox update pref