2006-06-21 Alex Roitman <shura@gramps-project.org>

* src/DateEdit.py (DateEditorDialog.__init__): Take care of
	deleting the dialog.



svn: r6937
This commit is contained in:
Alex Roitman 2006-06-21 19:18:54 +00:00
parent f4293ae57f
commit 6edc7511be
2 changed files with 19 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2006-06-21 Alex Roitman <shura@gramps-project.org>
* src/DateEdit.py (DateEditorDialog.__init__): Take care of
deleting the dialog.
2006-06-21 Don Allingham <don@gramps-project.org>
* src/Filters/__init__.py: include new build_filter_model
* src/Filters/_FilterMenu.py: build_filter_model

View File

@ -272,10 +272,12 @@ class DateEditorDialog(ManagedWindow.ManagedWindow):
response = self.window.run()
if response == gtk.RESPONSE_HELP:
GrampsDisplay.help('adv-dates')
elif response == gtk.RESPONSE_OK:
(the_quality,the_modifier,the_calendar,the_value,the_text) = \
self.build_date_from_ui()
elif response == gtk.RESPONSE_DELETE_EVENT:
return
else:
if response == gtk.RESPONSE_OK:
(the_quality,the_modifier,the_calendar,
the_value,the_text) = self.build_date_from_ui()
self.return_date = Date(self.date)
self.return_date.set(
quality=the_quality,
@ -283,10 +285,8 @@ class DateEditorDialog(ManagedWindow.ManagedWindow):
calendar=the_calendar,
value=the_value,
text=the_text)
break
else:
break
self.close()
return
def build_menu_names(self, obj):
return (_("Date selection"), None)