if esc hit, don't add/delete tags

This commit is contained in:
Damien Elmes 2009-08-17 06:54:50 +09:00
parent 52bd264c05
commit dbfcb44ea7

View file

@ -827,7 +827,7 @@ where id in (%s)""" % ",".join([
(tags, r) = ui.utils.getTag(self, self.deck, _("Enter tags to add:"))
if label is None:
label = _("Add Tags")
if tags:
if r:
self.parent.setProgressParent(self)
self.deck.setUndoStart(label)
self.deck.addTags(self.selectedFacts(), tags)
@ -840,7 +840,7 @@ where id in (%s)""" % ",".join([
(tags, r) = ui.utils.getTag(self, self.deck, _("Enter tags to delete:"))
if label is None:
label = _("Delete Tags")
if tags:
if r:
self.parent.setProgressParent(self)
self.deck.setUndoStart(label)
self.deck.deleteTags(self.selectedFacts(), tags)