[Pkg-mozext-commits] [nostalgy] 192/252: Bug fix.

David Prévot taffit at moszumanska.debian.org
Tue Jun 14 15:24:57 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 40e4d7952018fc26f42dea5cf5e1417bdb14e812
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Wed Jan 6 17:27:57 2010 +0000

    Bug fix.
---
 content/nostalgy.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/content/nostalgy.js b/content/nostalgy.js
index 1604fb4..f0dd72b 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -702,17 +702,21 @@ function NostalgySearchSender() {
   var key = "";
   try {
       key = gDBView.hdrForFirstSelectedMessage.messageKey;
-  } catch (ex) { return; }
+  } catch (ex) { }
 
   input.focus();
   input.showingSearchCriteria = false;
   input.clearButtonHidden = false;
-  var name = (recips ? MailRecipName() : MailAuthorName());
-  var subj = MailSubject();
+  var name = "";
+  var subj = "";
+  try {
+      name = (recips ? MailRecipName() : MailAuthorName());
+      subj = MailSubject();
+  } catch (ex) { }
   if (input.value != last_cycle_restrict_value) last_cycle_restrict = 0;
   last_cycle_restrict++;
   var to_search = "";
-  if (last_cycle_restrict == 1) {
+  if (name != "" && last_cycle_restrict == 1) {
       last_cycle_saved_searchMode = input.searchMode;
       to_search = name;
       if (recips && window.kQuickSearchRecipient)
@@ -726,7 +730,7 @@ function NostalgySearchSender() {
       else
           alert("Nostalgy error: don't know which QuickSearch criterion to use");
   }
-  else if (last_cycle_restrict == 2) {
+  else if (subj != "" && last_cycle_restrict == 2) {
       to_search = subj;
       if (NostalgyIsDefined("kQuickSearchSubject"))
           input.searchMode = kQuickSearchSubject;

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