failed to restore subtree-collapsed state for restored tabs (by undo close tab command)

This commit is contained in:
SHIMODA Hiroshi 2011-12-09 11:12:27 +09:00
parent 491ec519a7
commit 7b41779a0b

View File

@ -2634,8 +2634,10 @@ TreeStyleTabBrowser.prototype = {
this.stopRendering(); this.stopRendering();
var backupAttributes = {}; var backupAttributes = {};
if (this.hasChildTabs(tab)) if (this.hasChildTabs(tab)) {
backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN); backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN);
backupAttributes[this.kSUBTREE_COLLAPSED] = this.getTabValue(tab, this.kSUBTREE_COLLAPSED);
}
var subtreeCollapsed = this.isSubtreeCollapsed(tab); var subtreeCollapsed = this.isSubtreeCollapsed(tab);
if ( if (