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:
@ -141,11 +141,13 @@ class EditRepository(EditPrimary):
|
||||
self.define_ok_button(self.glade.get_widget('ok'), self.save)
|
||||
|
||||
def save(self,*obj):
|
||||
self.ok_button.set_sensitive(False)
|
||||
if self.object_is_empty():
|
||||
from QuestionDialog import ErrorDialog
|
||||
ErrorDialog(_("Cannot save repository"),
|
||||
_("No data exists for this repository. Please "
|
||||
"enter data or cancel the edit."))
|
||||
self.ok_button.set_sensitive(True)
|
||||
return
|
||||
|
||||
trans = self.db.transaction_begin()
|
||||
|
Reference in New Issue
Block a user