From cf52ebb90d26e2199d35d47b865a9897c41d6def Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 18 Jun 2007 18:33:28 +0000 Subject: [PATCH] 2007-06-18 Alex Roitman * src/DateEdit.py (DateEditorDialog.switch_calendar): Only convert non-empty dates to new calendar. svn: r8583 --- ChangeLog | 4 ++++ src/DateEdit.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53f649932..fc38c7c50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-18 Alex Roitman + * src/DateEdit.py (DateEditorDialog.switch_calendar): Only convert + non-empty dates to new calendar. + 2007-06-17 Alex Roitman * src/plugins/Verify.py: Clarification in wording: #1071. * src/GrampsCfg.py (NameFormatEditDlg.cb_format_changed): Catch diff --git a/src/DateEdit.py b/src/DateEdit.py index c759487f2..1b1142d77 100644 --- a/src/DateEdit.py +++ b/src/DateEdit.py @@ -366,7 +366,8 @@ class DateEditorDialog(ManagedWindow.ManagedWindow): value=the_value, text=the_text) - self.date.convert_calendar(new_cal) + if not self.date.is_empty(): + self.date.convert_calendar(new_cal) self.start_month_box.get_model().clear() self.stop_month_box.get_model().clear()