From ece26c420f03b19e10a86c3279ec88128132b9fc Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 24 Feb 2008 21:18:49 +0000 Subject: [PATCH] 2008-02-24 Gary Burton * src/Selectors/_SelectPerson.py: Let return key close search field. Bug #1728 2008-02-24 Gary Burton svn: r10109 --- ChangeLog | 6 +++++- src/Selectors/_SelectPerson.py | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f620d07e..78c2b855f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-02-24 Gary Burton + * src/Selectors/_SelectPerson.py: Let return key close search field. + Bug #1728 + 2008-02-24 Raphael Ackermann * Editors/_EditRepository.py * Editors/_EditFamily.py @@ -19,7 +23,7 @@ add Up and Down buttons to the tabs. Added individual tooltips for buttons 0001807: Missing buttons MoveUp, MoveDown on a Events list in a person... -2008-02-22 Gary Burton +2008-02-24 Gary Burton * src/Editors/_EditPerson.py: Fixed crash on clicking OK to save name change. Bug #1783 diff --git a/src/Selectors/_SelectPerson.py b/src/Selectors/_SelectPerson.py index 8c25786e4..570851f93 100644 --- a/src/Selectors/_SelectPerson.py +++ b/src/Selectors/_SelectPerson.py @@ -184,10 +184,9 @@ class SelectPerson(ManagedWindow.ManagedWindow): else: self.plist.expand_row(paths[0], 0) return True - else: - self.window.response(gtk.RESPONSE_OK) - return True return False def _on_row_activated(self, treeview, path, view_col): - self.window.response(gtk.RESPONSE_OK) + store, paths = self.selection.get_selected_rows() + if paths and len(paths[0]) == 2 : + self.window.response(gtk.RESPONSE_OK)