Don't replace parent tab with group tab if it ls already replaced

This commit is contained in:
YUKI Hiroshi 2016-02-12 19:27:51 +09:00
parent 7480757a0f
commit c3efa9bd13

View File

@ -5762,7 +5762,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
insertBefore = this.getNextSiblingTab(this.getRootTab(aTab));
}
if (aInfo.behavior == this.kCLOSE_PARENT_BEHAVIOR_REPLACE_WITH_GROUP_TAB) {
if (aInfo.behavior == this.kCLOSE_PARENT_BEHAVIOR_REPLACE_WITH_GROUP_TAB &&
!this.isGroupTab(aTab)) {
let uri = this.getGroupTabURI({
title: aTab.label,
temporary: true