[Pkg-mozext-commits] [tabmixplus] 15/44: Tabs merged in reverse order, when the preference openTabNext is true and both browser.tabs.insertRelatedAfterCurrent and openTabNextInverse are false
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 01e7e19c7704563715d717416c2145255919ef08
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Oct 5 23:25:22 2014 +0300
Tabs merged in reverse order, when the preference openTabNext is true and both browser.tabs.insertRelatedAfterCurrent and openTabNextInverse are false
---
modules/MergeWindows.jsm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/MergeWindows.jsm b/modules/MergeWindows.jsm
index ccaeb8b..24e97c5 100644
--- a/modules/MergeWindows.jsm
+++ b/modules/MergeWindows.jsm
@@ -153,6 +153,9 @@ let MergeWindows = {
}
var tabToSelect = null;
+ // make sure that the tabs will open in the same order
+ let prefVal = this.prefs.getBoolPref("openTabNextInverse");
+ this.prefs.setBoolPref("openTabNextInverse", true);
for (let i = 0; i < tabs.length; i++) {
let tab = tabs[i];
let isPopup = !tab.ownerDocument.defaultView.toolbar.visible;
@@ -170,6 +173,7 @@ let MergeWindows = {
// see in Tabmix.copyTabData list of attributs we copy to the new tab
tabbrowser.swapBrowsersAndCloseOther(newTab, tab);
}
+ this.prefs.setBoolPref("openTabNextInverse", prefVal);
if (notFocused) {
// select new tab after all other tabs swap to the target window
--
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