[longomatch] Return "Not Defined" if hotkey is not defined
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Return "Not Defined" if hotkey is not defined
- Date: Mon, 14 Sep 2009 22:58:36 +0000 (UTC)
commit 194bc79967f4b8f036a0d3fb37021b0baaede531
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Sep 10 17:26:20 2009 +0200
Return "Not Defined" if hotkey is not defined
LongoMatch/Time/HotKey.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Time/HotKey.cs b/LongoMatch/Time/HotKey.cs
index 5af04ba..604aecf 100644
--- a/LongoMatch/Time/HotKey.cs
+++ b/LongoMatch/Time/HotKey.cs
@@ -91,6 +91,8 @@ namespace LongoMatch.TimeNodes
public override string ToString ()
{
string modifierS = Catalog.GetString("none");
+ if (!Defined)
+ return Catalog.GetString("Not defined");
if (Modifier == ModifierType.Mod1Mask)
modifierS = "Alt";
else if (Modifier == ModifierType.ShiftMask)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]