[Pkg-mozext-commits] [nostalgy] 147/235: Fix for current Shredder.

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:42:08 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit 9b79a4d0dcc47defd9706a3dd051e91231700ff1
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Sun Jan 18 13:13:55 2009 +0000

    Fix for current Shredder.
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@147 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 content/nostalgy.js |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/content/nostalgy.js b/content/nostalgy.js
index 21041be..c50e641 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -624,8 +624,13 @@ function NostalgyShowFolder(folder) {
       totry = kNumFolderViews;
       savedFolderView = gCurrentFolderView;
   } else if (window.gFolderTreeView) {
-      totry = window.gFolderTreeView.modeNames.length;
-      savedFolderView = window.gFolderTreeView.modeNames.indexOf(window.gFolderTreeView.mode);
+      try {
+        totry = window.gFolderTreeView.modeNames.length;
+        savedFolderView = window.gFolderTreeView.modeNames.indexOf(window.gFolderTreeView.mode);
+      } catch (ex) {
+        totry = window.gFolderTreeView._modeNames.length;
+        savedFolderView = window.gFolderTreeView._modeNames.indexOf(window.gFolderTreeView.mode);
+      }
   }
   var search = "";
   var input = GetSearchInput();
@@ -635,6 +640,8 @@ function NostalgyShowFolder(folder) {
       while (totry > 0) {
           try {
               window.gFolderTreeView.selectFolder(folder);
+              if (!window.gFolderTreeView.getIndexOfFolder(folder))
+                  throw("XXX");
               totry = 0;
           } catch (ex) { totry--; window.gFolderTreeView.cycleMode(true); }
       }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list