すべての子を解放した時だけダミーの親タブを閉じる
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4791 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
8cb9c7e692
commit
4754f4803d
@ -2968,7 +2968,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
event.initEvent('TreeStyleTabParted', true, true);
|
||||
aChild.dispatchEvent(event);
|
||||
|
||||
if (this.isGroupTab(parentTab)) {
|
||||
if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) {
|
||||
window.setTimeout(function(aSelf) {
|
||||
aSelf.getTabBrowserFromChild(parentTab).removeTab(parentTab);
|
||||
}, 0, this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user