Fix of issue 3215.
svn: r13236
This commit is contained in:
parent
d48caf0574
commit
dd10d9bfdb
@ -198,13 +198,19 @@ class FamilyListView(PageView.ListView):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def remove(self, obj):
|
def remove(self, obj):
|
||||||
self.uistate.set_busy_cursor(1)
|
from QuestionDialog import QuestionDialog2
|
||||||
import gen.utils
|
from Utils import data_recover_msg
|
||||||
|
msg = _('Deleting item will remove it from the database.')
|
||||||
for handle in self.selected_handles():
|
msg = msg + '\n' + data_recover_msg
|
||||||
gen.utils.remove_family_relationships(self.dbstate.db, handle)
|
q = QuestionDialog2(_('Delete %s?') % _('family'), msg,
|
||||||
self.build_tree()
|
_('_Delete Item'), _('Cancel'))
|
||||||
self.uistate.set_busy_cursor(0)
|
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()
|
||||||
|
self.uistate.set_busy_cursor(0)
|
||||||
|
|
||||||
def edit(self, obj):
|
def edit(self, obj):
|
||||||
for handle in self.selected_handles():
|
for handle in self.selected_handles():
|
||||||
|
Loading…
Reference in New Issue
Block a user