]> git.lyx.org Git - lyx.git/commit
Avoid crash when InsetBibitem::updateCommand shows a dialog 2.4.1
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 2 Jul 2024 12:49:34 +0000 (14:49 +0200)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 2 Jul 2024 19:15:34 +0000 (15:15 -0400)
commit1d25832edcfde1eac543a7b7b82545319d79c1e3
tree1ad2a8b755057cc9de204afd39d3a6a4ee4fd48d
parentb295b39de12ff7e2106ac7a5d60c4d6524ab4614
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.

(cherry picked from commit c84c59eaecf19b1eb8227f9aadc7f5be187b3856)
ANNOUNCE
src/insets/InsetBibitem.cpp