[Pkg-mozext-commits] [tabmixplus] 25/47: For the case SessionStore closed windows is messed and don't have selected tab

David Prévot taffit at moszumanska.debian.org
Fri Sep 26 20:57:01 UTC 2014


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

taffit pushed a commit to branch upstream
in repository tabmixplus.

commit 4684954c646a716a331a32b720e063ddb1fc7a52
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Sep 20 17:04:51 2014 +0300

    For the case SessionStore closed windows is messed and don't have selected tab
---
 chrome/content/session/sessionStore.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/session/sessionStore.js b/chrome/content/session/sessionStore.js
index 6f175ef..1d29bd6 100644
--- a/chrome/content/session/sessionStore.js
+++ b/chrome/content/session/sessionStore.js
@@ -27,8 +27,8 @@ var TMP_SessionStore = {
      // if user already rename this item wo don't use other title
      if (aUndoItem.renamed)
        return;
-     let selectedTab = aUndoItem.tabs[aUndoItem.selected - 1];
-     if (!selectedTab.entries || selectedTab.entries.length == 0)
+     let selectedTab = aUndoItem.selected && aUndoItem.tabs[aUndoItem.selected - 1];
+     if (!selectedTab || !selectedTab.entries || selectedTab.entries.length == 0)
        return;
      let tabData = this.getActiveEntryData(selectedTab);
      let url = selectedTab.attributes["label-uri"];

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



More information about the Pkg-mozext-commits mailing list