[Pkg-mozext-commits] [tabmixplus] 16/44: Fix reference to undefined property groups.activeGroupId
David Prévot
taffit at moszumanska.debian.org
Wed Oct 15 02:09:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit af16db0d3b700eb9908214e25e646716b2137a3b
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Oct 6 22:03:10 2014 +0300
Fix reference to undefined property groups.activeGroupId
---
chrome/content/session/session.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index 450cf04..55659cf 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -3230,8 +3230,9 @@ try{
this.setStripVisibility(newtabsCount);
let tabsData = TabmixConvertSession.getTabsState(rdfNodeTabs, true);
- let groups = this._tabviewData["tabview-groups"];
- let activeGroupId = groups ? groups.activeGroupId : null;
+ let activeGroupId = null, groups = this._tabviewData["tabview-groups"];
+ if (groups && typeof groups.activeGroupId != "undefined")
+ activeGroupId = groups.activeGroupId;
let tabs = [], numVisibleTabs = 0, firstVisibleTab = -1
let needToReload = this.prefBranch.getBoolPref("restore.reloadall");
for (let t = 0; t < tabsData.length ; t++) {
--
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