[longomatch] Fix exeception deleting palyers when none is selected
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix exeception deleting palyers when none is selected
- Date: Tue, 14 Oct 2014 15:47:16 +0000 (UTC)
commit 027ba8e8d7af147ab5673ddf10f68b0704a356be
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Oct 13 14:50:14 2014 +0200
Fix exeception deleting palyers when none is selected
LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
index a5ab6a2..bb43701 100644
--- a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
@@ -110,7 +110,7 @@ namespace LongoMatch.Gui.Component
}
public void DeleteSelectedPlayers () {
- if (selectedPlayers.Count == 0) {
+ if (selectedPlayers == null || selectedPlayers.Count == 0) {
return;
}
@@ -348,7 +348,6 @@ namespace LongoMatch.Gui.Component
team.List.Swap (p1, p2);
teamtagger.Substitute (p1, p2, team);
}
-
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]