[chronojump] Ensure on adding a person never is shown more times on the treeview (by any rare mono thread stuff)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Ensure on adding a person never is shown more times on the treeview (by any rare mono thread stuff)
- Date: Wed, 29 Nov 2017 20:00:41 +0000 (UTC)
commit 3aa46e86994b232e242c021423fe34099163f95d
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Nov 29 21:00:04 2017 +0100
Ensure on adding a person never is shown more times on the treeview (by any rare mono thread stuff)
src/gui/chronojump.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index bb4e37b..caadb82 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2567,11 +2567,13 @@ public partial class ChronoJumpWindow
//-1 means we are adding a new person
//if we were modifying it will be it's uniqueID
+ personAddModifyWin.FakeButtonAccept.Clicked -= new
EventHandler(on_person_add_single_accepted);
personAddModifyWin.FakeButtonAccept.Clicked += new
EventHandler(on_person_add_single_accepted);
}
private void on_person_add_single_accepted (object o, EventArgs args)
{
+ personAddModifyWin.FakeButtonAccept.Clicked -= new
EventHandler(on_person_add_single_accepted);
if (personAddModifyWin.CurrentPerson != null)
{
currentPerson = personAddModifyWin.CurrentPerson;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]