[Pkg-mozext-commits] [nostalgy] 178/235: Do not try to restore the original folder view after switching in order to find the target folder (otherwise the folder is not selected in the treeview).

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:42:18 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 400cec1cc4f801fdaa3442bb5d36360992affc8c
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Mon Dec 14 20:40:26 2009 +0000

    Do not try to restore the original folder view after switching in order to find the target folder (otherwise the folder is not selected in the treeview).
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@178 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 content/nostalgy.js |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/content/nostalgy.js b/content/nostalgy.js
index d2dc22f..a6b3e4c 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -671,15 +671,17 @@ function NostalgyShowFolder(folder) {
   if (input && !input.showingSearchCriteria) search = input.value;
   if (window.gFolderTreeView) {
       var saved_mode = window.gFolderTreeView.mode;
-      while (totry > 0) {
-          try {
+      try {
+          while (totry > 0)  {
               window.gFolderTreeView.selectFolder(folder);
-              if (!window.gFolderTreeView.getIndexOfFolder(folder))
-                  throw("XXX");
-              totry = 0;
-          } catch (ex) { totry--; window.gFolderTreeView.cycleMode(true); }
-      }
-      window.gFolderTreeView.mode = saved_mode;
+              if (window.gFolderTreeView.getIndexOfFolder(folder))
+                  totry = 0;
+              else {
+                  totry--;
+                  window.gFolderTreeView.cycleMode(true);
+              }
+          }
+      } catch (ex) { NostalgyDebug("Ex: " + ex); }
   } else {
       while (totry > 0) {
           try {

-- 
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