From 29be6315460b48d2b2d613f93a4a2ea073198689 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 22 Mar 2011 02:31:13 +0000 Subject: [PATCH] More debug code for selection issues --- chrome/content/zotero/xpcom/itemTreeView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index b119a778bf..7a6c9babae 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -1263,6 +1263,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse) { // Don't change selection if UI updates are disabled (e.g., during sync) if (Zotero.suppressUIUpdates) { + Zotero.debug("Sync is running; not selecting item"); return; } @@ -1271,6 +1272,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse) if (!this._itemRowMap) { if (this._itemGroup) { this._itemGroup.itemToSelect = { id: id, expand: expand }; + Zotero.debug("_itemRowMap not yet set; not selecting item"); return false; } @@ -1303,6 +1305,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse) return this.selectItem(id, expand, true); } + Zotero.debug("Could not find row for item; not selecting item"); return false; }