José Matos wrote:
On Monday 09 July 2007 14:21:58 Abdelrazak Younes wrote:
Which one? The one that add a redundant updateToc() in LyXView or the
one that updates the dialogs only if this is not LFUN_UPDATE_DIALOG in
LyXFunc?
Conceptually speaking, the later is more correct, even if this means a
special case in LyXFunc::dispatch(). The first one will only cure the
problem with the Toc, maybe other dialog has the very same problem
Then when we find the bug we fix it the same way. ;-)
Conclusion: I am recommending the change in LyXFunc.
I am more comfortable with the later solution (the redundant TOC).
I don't understand why it looks any safer but anyway, I've committed it.
> We can
> fix this properly for 1.6.
The proper fix would be to get rid of the restoreButton() call in
Dialogs::updateBufferDependant() but I didn't dare to do it now.
Abdel.