[Pkg-mozext-commits] [tabmixplus] 40/123: Follow up Bug 1050447 - use newTab instead of calling getTabForLastPanel
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:25 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 0a6f9e5f045bc22ec2ffb57e5d19f51587d8fb27
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Aug 25 13:27:44 2014 +0300
Follow up Bug 1050447 - use newTab instead of calling getTabForLastPanel
---
chrome/content/places/places.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index f5db937..f8eaff8 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -102,9 +102,10 @@ var TMP_Places = {
w.gBrowser.ensureTabIsVisible(w.gBrowser.selectedTab);'
)._replace(
/(\})(\)?)$/,
- 'var tab = where == "current" ? w.gBrowser.mCurrentTab : w.gBrowser.getTabForLastPanel(); \
- w.TMP_Places.setTabTitle(tab, url, bookMarkId); \
- $1$2'
+ ' var tab = where == "current" ? w.gBrowser.mCurrentTab :\n' +
+ ' (Tabmix.isVersion(340) ? newTab : w.gBrowser.getTabForLastPanel());\n' +
+ ' w.TMP_Places.setTabTitle(tab, url, bookMarkId);\n' +
+ '$1$2'
).toCode();
// prevent error when closing window with sidbar open
--
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