2007-04-07 Don Allingham <don@gramps-project.org>

* src/plugins/Checkpoint.py: update from 2.2
	* src/GrampsDb/_GrampsDbWriteXML.py: clean up
	* src/Editors/_EditPrimary.py: prevent double OK clicks
	* src/Editors/_EditPlace.py: prevent double OK clicks
	* src/Editors/_EditSource.py: prevent double OK clicks
	* src/Editors/_EditPerson.py: prevent double OK clicks
	* src/Editors/_EditRepository.py: prevent double OK clicks
	* src/Editors/_EditFamily.py: prevent double OK clicks
	* src/Editors/_EditEvent.py: prevent double OK clicks



svn: r8361
This commit is contained in:
Don Allingham
2007-04-08 04:24:38 +00:00
parent 00632c6a70
commit a712445a2b
11 changed files with 65 additions and 27 deletions

View File

@ -160,12 +160,14 @@ class EditSource(EditPrimary):
return (_('Edit Source'), self.get_menu_title())
def save(self,*obj):
self.ok_button.set_sensitive(False)
if self.object_is_empty():
from QuestionDialog import ErrorDialog
ErrorDialog(_("Cannot save source"),
_("No data exists for this source. Please "
"enter data or cancel the edit."))
self.ok_button.set_sensitive(True)
return
trans = self.db.transaction_begin()