[longomatch] Closes http://bugzilla.gnome.org/show_bug.cgi?id=592934
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Closes http://bugzilla.gnome.org/show_bug.cgi?id=592934
- Date: Mon, 24 Aug 2009 19:37:13 +0000 (UTC)
commit b64122c22c88322800e44e00f2e30c5b323eb443
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Aug 24 20:18:30 2009 +0200
Closes http://bugzilla.gnome.org/show_bug.cgi?id=592934
LongoMatch/Gui/FileDescriptionWidget.cs | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/FileDescriptionWidget.cs b/LongoMatch/Gui/FileDescriptionWidget.cs
index d3a77e9..d2ca9f2 100644
--- a/LongoMatch/Gui/FileDescriptionWidget.cs
+++ b/LongoMatch/Gui/FileDescriptionWidget.cs
@@ -126,7 +126,19 @@ namespace LongoMatch.Gui.Component
}
public DateTime Date{
- get {return DateTime.Parse(dateEntry.Text);}
+ get {
+ //HACK See bug http://bugzilla.gnome.org/show_bug.cgi?id=592934
+ //dateEntry is not editable and we set the date manually
+ //Why do we get this error?
+ DateTime date;
+ try{
+ date = DateTime.Parse(dateEntry.Text);
+ }
+ catch{
+ date = DateTime.Now;
+ }
+
+ return DateTime.Parse(dateEntry.Text);}
set {dateEntry.Text = value.ToString(Catalog.GetString("MM/dd/yyyy"));}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]