From 7392cac1342c8439ace3726a6d9de134c722d1b3 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 15 Feb 2010 13:18:49 +0000 Subject: [PATCH] 3513: Cannot move up an individual alone in the event tab (Person Editor) svn: r14388 --- src/gui/editors/displaytabs/personeventembedlist.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/editors/displaytabs/personeventembedlist.py b/src/gui/editors/displaytabs/personeventembedlist.py index eae708af3..7f51515a1 100644 --- a/src/gui/editors/displaytabs/personeventembedlist.py +++ b/src/gui/editors/displaytabs/personeventembedlist.py @@ -135,6 +135,9 @@ class PersonEventEmbedList(EventEmbedList): ref = self.get_selected() if not ref or ref[1]: return + if ref[0] == 0: + #the workgroup: person events, cannot move up + return if ref[0] == 1: #cannot move up, already first family return @@ -155,6 +158,9 @@ class PersonEventEmbedList(EventEmbedList): ref = self.get_selected() if not ref or ref[1]: return + if ref[0] == 0: + #person events, cannot move down + return if ref[0] == len(self._groups)-1: #cannot move down, already last family return