Deepcopy the layout before we trash it as we unwind it into a tree.

This commit is contained in:
Chris Jones 2010-03-10 12:52:50 +00:00
parent 2e116b09eb
commit 4cb4a9bc48
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
# GPL v2 only # GPL v2 only
"""terminator.py - class for the master Terminator singleton""" """terminator.py - class for the master Terminator singleton"""
import copy
import gtk import gtk
from borg import Borg from borg import Borg
@ -118,7 +119,7 @@ class Terminator(Borg):
self.doing_layout = True self.doing_layout = True
layout = self.config.layout_get_config(layoutname) layout = copy.deepcopy(self.config.layout_get_config(layoutname))
if not layout: if not layout:
# User specified a non-existent layout. default to one Terminal # User specified a non-existent layout. default to one Terminal
err('layout %s not defined' % layout) err('layout %s not defined' % layout)