]> 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>
Wed, 13 Dec 2017 10:10:49 +0000 (11:10 +0100)
commitcd9e42dc3529980257d2b0fe6fd623fd2b99a1e6
treeedb103585b7bc396a04193a0a827e4014e73351b
parent8b107f0490e61b4390e925f08d21661ef50d6f49
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.
src/Buffer.cpp
src/Undo.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiDocument.cpp
src/insets/InsetGraphics.cpp
src/insets/InsetLabel.cpp