[longomatch] Fix substitution edition with the away team
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix substitution edition with the away team
- Date: Wed, 5 Nov 2014 19:03:33 +0000 (UTC)
commit 775d7b4d98e9345d707b4500aec66a3ac9382f43
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Nov 5 19:38:24 2014 +0100
Fix substitution edition with the away team
LongoMatch.GUI/Gui/Dialog/SubstitutionsEditor.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/SubstitutionsEditor.cs
b/LongoMatch.GUI/Gui/Dialog/SubstitutionsEditor.cs
index a58a9a9..b36d3d5 100644
--- a/LongoMatch.GUI/Gui/Dialog/SubstitutionsEditor.cs
+++ b/LongoMatch.GUI/Gui/Dialog/SubstitutionsEditor.cs
@@ -104,7 +104,11 @@ namespace LongoMatch.Gui.Dialog
tagger.SubstitutionMode = false;
tagger.ShowSubstitutionButtons = false;
tagger.SelectionMode = MultiSelectionMode.Single;
- LoadTeams (project, hfp, hbp, null, null);
+ if (substitution.Team == Team.LOCAL) {
+ LoadTeams (project, hfp, hbp, null, null);
+ } else {
+ LoadTeams (project, afp, abp, null, null);
+ }
SwitchPlayer (substitution.In, substitution.Out);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]