diff --git a/src/gui/editors/displaytabs/backreflist.py b/src/gui/editors/displaytabs/backreflist.py index bb2fd95c0..b70c3bfd0 100644 --- a/src/gui/editors/displaytabs/backreflist.py +++ b/src/gui/editors/displaytabs/backreflist.py @@ -163,7 +163,24 @@ class BackRefList(EmbeddedList): citation = self.dbstate.db.get_citation_from_handle(ref) EditCitation(self.dbstate, self.uistate, [], citation) except Errors.WindowActiveError: - pass + """ + Return the text used when citation cannot be edited + """ + blocked_text = _("Cannot open new citation editor at this time. " + "Either the citation is already being edited, " + "or the associated source is already being " + "edited, and opening a citation editor " + "(which also allows the source " + "to be edited), would create ambiguity " + "by opening two editor on the same source. " + "\n\n" + "To edit the citation, close the source " + "editor and open an editor for the citation " + "alone") + + from QuestionDialog import WarningDialog + WarningDialog(_("Cannot open new citation editor"), + blocked_text) elif reftype == 'Place': try: place = self.dbstate.db.get_place_from_handle(ref)