From 4cb4a9bc4894e55ca0767cd7d2d76f6ad4a0a516 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 10 Mar 2010 12:52:50 +0000 Subject: [PATCH] Deepcopy the layout before we trash it as we unwind it into a tree. --- terminatorlib/terminator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 9a0df9cf..829edd38 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -3,6 +3,7 @@ # GPL v2 only """terminator.py - class for the master Terminator singleton""" +import copy import gtk from borg import Borg @@ -118,7 +119,7 @@ class Terminator(Borg): self.doing_layout = True - layout = self.config.layout_get_config(layoutname) + layout = copy.deepcopy(self.config.layout_get_config(layoutname)) if not layout: # User specified a non-existent layout. default to one Terminal err('layout %s not defined' % layout)