[chronojump] initial evaluator date is Now instead of Minimum
- From: Xavier de Blas <xaviblas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [chronojump] initial evaluator date is Now instead of Minimum
- Date: Fri, 18 Sep 2009 17:50:20 +0000 (UTC)
commit 4b43251a2fa7654fbcba6fc18a74025bc612dafa
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Sep 18 19:49:41 2009 +0200
initial evaluator date is Now instead of Minimum
src/gui/evaluator.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/evaluator.cs b/src/gui/evaluator.cs
index 99b0980..54ef3eb 100644
--- a/src/gui/evaluator.cs
+++ b/src/gui/evaluator.cs
@@ -339,7 +339,10 @@ public class EvaluatorWindow
void on_button_change_date_clicked (object o, EventArgs args)
{
- myDialogCalendar = new DialogCalendar(Catalog.GetString("Select session date"), dateTime);
+ DateTime dt = dateTime;
+ if(dt == DateTime.MinValue)
+ dt = DateTime.Now;
+ myDialogCalendar = new DialogCalendar(Catalog.GetString("Select of Birth"), dt);
myDialogCalendar.FakeButtonDateChanged.Clicked += new EventHandler(on_calendar_changed);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]