Only check for changed data when cancel button clicked

This commit is contained in:
Nick Hall 2015-12-30 00:41:00 +00:00
parent be7e9ace36
commit a65e69cb53
7 changed files with 7 additions and 7 deletions

View File

@ -323,7 +323,7 @@ class EditCitation(EditPrimary):
if self.callback:
self.callback(self.obj.get_handle())
self.close()
self._do_close()
def data_has_changed(self):
"""

View File

@ -279,7 +279,7 @@ class EditEvent(EditPrimary):
if self.callback:
self.callback(self.obj)
self.close()
self._do_close()
def data_has_changed(self):
"""

View File

@ -334,7 +334,7 @@ class EditMedia(EditPrimary):
if self.callback:
self.callback(self.obj)
self.close()
self._do_close()
def data_has_changed(self):
"""

View File

@ -341,7 +341,7 @@ class EditNote(EditPrimary):
if self.callback:
self.callback(self.obj.get_handle())
self.close()
self._do_close()
class DeleteNoteQuery(object):
def __init__(self, dbstate, uistate, note, the_lists):

View File

@ -315,7 +315,7 @@ class EditPlace(EditPrimary):
msg = _("Edit Place (%s)") % place_title
trans.set_description(msg)
self.close()
self._do_close()
if self.callback:
self.callback(self.obj)

View File

@ -207,7 +207,7 @@ class EditRepository(EditPrimary):
msg = _("Edit Repository (%s)") % self.obj.get_name()
trans.set_description(msg)
self.close()
self._do_close()
class DeleteRepositoryQuery(object):
def __init__(self, dbstate, uistate, repository, sources):

View File

@ -227,7 +227,7 @@ class EditSource(EditPrimary):
msg = _("Edit Source (%s)") % self.obj.get_title()
trans.set_description(msg)
self.close()
self._do_close()
if self.callback:
self.callback(self.obj)