[tasque] Fix wrong event sender propagated.
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque] Fix wrong event sender propagated.
- Date: Mon, 3 Jun 2013 18:10:53 +0000 (UTC)
commit c618694ae4df43bf437ae02540914eb8e450c729
Author: Antonius Riha <antoniusriha gmail com>
Date: Mon Mar 18 11:38:12 2013 +0100
Fix wrong event sender propagated.
src/libtasque/Utils/AllList.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/libtasque/Utils/AllList.cs b/src/libtasque/Utils/AllList.cs
index 99fa015..5231ea6 100644
--- a/src/libtasque/Utils/AllList.cs
+++ b/src/libtasque/Utils/AllList.cs
@@ -111,8 +111,12 @@ namespace Tasque.Utils
}
public event NotifyCollectionChangedEventHandler CollectionChanged {
- add { tasks.CollectionChanged += value; }
- remove { tasks.CollectionChanged -= value; }
+ add {
+ tasks.CollectionChanged += (sender, e) => { value (this, e); };
+ }
+ remove {
+ tasks.CollectionChanged -= (sender, e) => { value (this, e); };
+ }
}
#region Explicit content
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]