[Pkg-mozext-commits] [tabmixplus] 86/123: Make sure to clear TMP_Places.currentTab when setTabTitle finished without changing the title

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:16:29 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 093fa520fde496b3b158dadd7fec7d74c63b4de9
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Sep 6 21:39:40 2014 +0300

    Make sure to clear TMP_Places.currentTab when setTabTitle finished without changing the title
---
 chrome/content/minit/tablib.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 5339b67..effbc51 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -230,11 +230,14 @@ var tablib = {
       'if (aTab.label == title',
       'if (aTab.hasAttribute("mergeselected"))\
          title = "(*) " + title;\
+       var noChange = aTab.label == title && aTab.crop == crop;\
        if (aTab.hasAttribute("tabmix_changed_label")) {\
          aTab.removeAttribute("tabmix_changed_label");\
-         if (aTab.label == title && aTab.crop == crop)\
+         if (noChange)\
            tablib.onTabTitleChanged(aTab, title == urlTitle);\
        }\
+       else if (noChange)\
+         TMP_Places.currentTab = null;\
        $&'
     )._replace(
       'aTab.crop = crop;',

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