From 7aea4fabf9952b9f4b88f226ab93477c5d9d5e95 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 22 Mar 2011 02:24:58 +0000 Subject: [PATCH] Debug code for library selection issues --- chrome/content/zotero/zoteroPane.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index f060c96d8..19287182c 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1737,15 +1737,18 @@ var ZoteroPane = new function() var currentLibraryID = this.getSelectedLibraryID(); // If in a different library if (item.libraryID != currentLibraryID) { + Zotero.debug("Library ID differs; switching library"); this.collectionsView.selectLibrary(item.libraryID); } // Force switch to library view else if (!this.itemsView._itemGroup.isLibrary() && inLibrary) { + Zotero.debug("Told to select in library; switching to library"); this.collectionsView.selectLibrary(item.libraryID); } var selected = this.itemsView.selectItem(itemID, expand); if (!selected) { + Zotero.debug("Item was not selected; switching to library"); this.collectionsView.selectLibrary(item.libraryID); this.itemsView.selectItem(itemID, expand); }