Issue 1218

This commit is contained in:
Thomas Nagy 2012-10-26 22:54:53 +02:00
parent 27aeab577c
commit 5ce68b696a
1 changed files with 2 additions and 1 deletions

View File

@ -326,10 +326,11 @@ class ConfigSet(object):
The history is kept in a stack, and is lost during the serialization by :py:meth:`ConfigSet.store`
"""
self.undo_stack = self.undo_stack + [self.table]
orig = self.table
tbl = self.table = self.table.copy()
for x in tbl.keys():
tbl[x] = copy.deepcopy(tbl[x])
self.undo_stack = self.undo_stack + [orig]
def revert(self):
"""