]> git.lyx.org Git - features.git/commit
Improve UndoGroupHelper and use it more
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 13 Dec 2017 10:10:49 +0000 (11:10 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 09:36:17 +0000 (10:36 +0100)
commit1dc134fb60806ee0d27371049392ab72223b6cd0
treef769b929e6c2ecdc8e6360f44bb328c54004aaa6
parent51e80361b2880a9f2e3b9d888891ffd9498713a6
Improve UndoGroupHelper and use it more

Now the helper class contains logic that checks whether buffer are
known before closing them. This avoids potential crashes.

Use it in different places to siplify code. It is not clear at this
point whether it should be used everywhere.

Followup to bug #10847.

(cherry picked from commit cd9e42dc3529980257d2b0fe6fd623fd2b99a1e6)
src/Buffer.cpp
src/Undo.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiDocument.cpp
src/insets/InsetGraphics.cpp
src/insets/InsetLabel.cpp
status.23x