[longomatch] Fix print of hotkeys without modifier



commit 8e0c0520d1014eef336a64d5ca669b8c92bbc99b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Mar 6 16:26:36 2010 +0100

    Fix print of hotkeys without modifier

 LongoMatch/Time/HotKey.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Time/HotKey.cs b/LongoMatch/Time/HotKey.cs
index 682d3de..a00c34a 100644
--- a/LongoMatch/Time/HotKey.cs
+++ b/LongoMatch/Time/HotKey.cs
@@ -122,14 +122,14 @@ namespace LongoMatch.TimeNodes
 
 		public override string ToString()
 		{
-			string modifierS = Catalog.GetString("none");
+			string modifierS;
 			if (!Defined)
 				return Catalog.GetString("Not defined");
 			if (Modifier == ModifierType.Mod1Mask)
 				modifierS = "<Alt>+";
 			else if (Modifier == ModifierType.ShiftMask)
 				modifierS = "<Shift>+";
-			else if (modifier == -1)
+			else
 				modifierS = "";
 
 			return string.Format("{0}{1}", modifierS,(Key.ToString()).ToLower());



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]