[Pkg-mozext-commits] [nostalgy] 177/252: 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 moszumanska.debian.org
Tue Jun 14 15:24:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository nostalgy.
commit a12a548fb490e742ce0a612b8c82f7f63a8a5244
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).
---
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