[longomatch] Include tags for any kind of buttons
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Include tags for any kind of buttons
- Date: Wed, 24 Sep 2014 20:28:47 +0000 (UTC)
commit d2f8003166e06be38b2ebf19ab32919208af3eb7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Sep 10 06:45:20 2014 +0200
Include tags for any kind of buttons
LongoMatch.Drawing/Widgets/DashboardCanvas.cs | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/DashboardCanvas.cs b/LongoMatch.Drawing/Widgets/DashboardCanvas.cs
index ad6ffa3..18168e8 100644
--- a/LongoMatch.Drawing/Widgets/DashboardCanvas.cs
+++ b/LongoMatch.Drawing/Widgets/DashboardCanvas.cs
@@ -295,15 +295,15 @@ namespace LongoMatch.Drawing.Widgets
eventTime = tagger.Start;
}
+ tags = new List<Tag> ();
if (tagger is CategoryObject) {
- tags = new List<Tag> ();
tags.AddRange ((tagger as CategoryObject).SelectedTags);
- foreach (TagObject to in Objects.OfType<TagObject>()) {
- if (to.Active) {
- tags.Add (to.TagButton.Tag);
- }
- to.Active = false;
+ }
+ foreach (TagObject to in Objects.OfType<TagObject>()) {
+ if (to.Active) {
+ tags.Add (to.TagButton.Tag);
}
+ to.Active = false;
}
if (button is PenaltyCardButton) {
card = (button as PenaltyCardButton).PenaltyCard;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]