[gbrainy] Ignore case in custom game names
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Ignore case in custom game names
- Date: Mon, 13 Sep 2010 21:06:05 +0000 (UTC)
commit 9b2c7867bf1a18317bc39d03ff8fef288cd266ea
Author: Jordi Mas <jmas softcatala org>
Date: Mon Sep 13 23:07:30 2010 +0200
Ignore case in custom game names
src/Clients/Classical/CommandLine.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Clients/Classical/CommandLine.cs b/src/Clients/Classical/CommandLine.cs
index fe3476c..cd410c3 100644
--- a/src/Clients/Classical/CommandLine.cs
+++ b/src/Clients/Classical/CommandLine.cs
@@ -147,7 +147,7 @@ namespace gbrainy.Clients.Classical
try
{
- dictionary.Add (game.Name, i);
+ dictionary.Add (game.Name.ToLower (), i);
}
catch (Exception e)
{
@@ -161,7 +161,7 @@ namespace gbrainy.Clients.Classical
{
try
{
- list.Add (dictionary [names [i]]);
+ list.Add (dictionary [names [i].ToLower ()]);
}
catch (KeyNotFoundException)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]