Fix of issue 3215.

svn: r13236
This commit is contained in:
Peter Landgren 2009-09-23 13:07:12 +00:00
parent d48caf0574
commit dd10d9bfdb

View File

@ -198,9 +198,15 @@ class FamilyListView(PageView.ListView):
pass
def remove(self, obj):
from QuestionDialog import QuestionDialog2
from Utils import data_recover_msg
msg = _('Deleting item will remove it from the database.')
msg = msg + '\n' + data_recover_msg
q = QuestionDialog2(_('Delete %s?') % _('family'), msg,
_('_Delete Item'), _('Cancel'))
if q.run():
self.uistate.set_busy_cursor(1)
import gen.utils
for handle in self.selected_handles():
gen.utils.remove_family_relationships(self.dbstate.db, handle)
self.build_tree()