1954
1954
# Confirm deletion dialog
1956
del_dlg = QtGui.QMessageBox.question(self,
1957
trs('Node deletion',
1958
'Caption of the node deletion dialog'),
1959
trs("""\nYou are about to delete the node:\n%s\n""",
1960
'Ask for confirmation') % node.nodepath,
1961
QtGui.QMessageBox.Yes|QtGui.QMessageBox.Default,
1962
QtGui.QMessageBox.No|QtGui.QMessageBox.Escape)
1956
title = trs('Node deletion', 'Caption of the node deletion dialog')
1957
text = trs("""\nYou are about to delete the node:\n%s\n""",
1958
'Ask for confirmation') % node.nodepath
1963
(trs('Delete', 'Button text'), QtGui.QMessageBox.YesRole),
1965
(trs('Cancel', 'Button text'), QtGui.QMessageBox.NoRole),
1964
# OK returns Accept, Cancel returns Reject
1965
if del_dlg == QtGui.QMessageBox.No:
1968
# Ask for confirmation
1970
vitables.utils.questionBox(title, text, itext, dtext, buttons)
1971
if answer == 'Cancel':
1968
1974
# If item is a filtered table then update the list of used names
1969
1975
if hasattr(node.node._v_attrs, 'query_condition'):