]> git.lyx.org Git - lyx.git/commit
Avoid crash when InsetBibitem::updateCommand shows a dialog
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 2 Jul 2024 12:49:34 +0000 (14:49 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 2 Jul 2024 12:54:20 +0000 (14:54 +0200)
commitc84c59eaecf19b1eb8227f9aadc7f5be187b3856
tree96e53a3fe45646e6b33c81740bfbf28e2f7432ef
parent574db220255dcd8c83f85e30527009a9af41e21d
Avoid crash when InsetBibitem::updateCommand shows a dialog

This is one of the places where a dialog is shown (indicating that
some bibtems have been renamed) while the metrics are not up to date.
Then a draw operation can be triggered too early and a crash can ensue.

Use ad-hoc solution for this case and use Buffer::setBusy(). The
Alert::warning helper cannot really do that since it doe snot know the
current buffer.
src/insets/InsetBibitem.cpp