From 69b63eb633fe5d68f776e569cd18e2902e4d2463 Mon Sep 17 00:00:00 2001 From: Max Mertens Date: Fri, 24 Jul 2015 12:59:42 +0200 Subject: [PATCH] swap terms correctly when moving tabs, fixes #473 and #512 --- src/guake/guake_notebook.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/guake/guake_notebook.py b/src/guake/guake_notebook.py index 3fbe7025a..380fc3d72 100644 --- a/src/guake/guake_notebook.py +++ b/src/guake/guake_notebook.py @@ -31,8 +31,7 @@ def reorder_child(self, child, position): """ We should also reorder elements in term_list """ old_pos = self.get_children().index(child) - terms = self.term_list - terms[old_pos], terms[position] = terms[position], terms[old_pos] + self.term_list.insert(position, self.term_list.pop(old_pos)) super(GuakeNotebook, self).reorder_child(child, position) def has_term(self):