Skip to content

Commit

Permalink
fixing problems with pasting from clipboard after tabs reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
Seraff committed May 1, 2015
1 parent 9d63598 commit 9ec7b51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/guake/guake_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def __init__(self, *args, **kwargs):
# used to kill the process when closing a tab
self.pid_list = []

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]
super(GuakeNotebook, self).reorder_child(child, position)

def has_term(self):
return self.term_list

Expand Down

0 comments on commit 9ec7b51

Please sign in to comment.