Jürgen Spitzmüller wrote:
rgheck wrote:
What I'd propose myself, somewhat along these lines, is that this error
only be shown once per file per session, rather than globally turned
off. Or perhaps the error dialog could have an option that would
effectively mean: Disable the warning for this file. We could also put
such an option into Document>Settings.
I agree. And we should use Qt's session managment (i.e. QSettings) for
this task.
OK. If so, then someone else would need to implement it, as I don't know
anything about that. I guess maybe we should bugzilla this....
The attached patch is a proof of concept. It adds a "Do not show this message
again" checkbox to the warning on request (implemented for the "different
classes" warning in the patch) and stores "hidden" messages in Session.
Currently, this does not differentiate per document, which could be
implemented easily. I think it is not too bad as it is now, since the whole
string is stored. So for instance you can turn off once and for all warnings
about a beamer-article including a beamer presentation (my personally most
hated message).
The patch still has some glitches. I do not have time to investigate further.
Maybe someone else will take over?
I'll try to find time to do this. But if someone else wants to beat me
to it....
rh