]> git.lyx.org Git - features.git/commit
Do not kill the undo stack when doing a Save As...
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Jul 2012 08:31:47 +0000 (10:31 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Jul 2012 08:31:47 +0000 (10:31 +0200)
commit467422f9df784e2e6bab4f0cc8fcfbc166c59bd4
tree4c2fe53798072aa1fb509c223058985866898d99
parent6ec1683aeecf701edf5d79f449e2e749e93d4342
Do not kill the undo stack when doing a Save As...

The code does a reload on the buffer to avoid loose pointers if the
file changes directory. This commit adds a bool parameter to
Buffer::reload to allow for keeping the undo stack intact. This is of
couse only wanted in this case, not when reloading an earlier version
of the file.
src/Buffer.cpp
src/Buffer.h
src/frontends/qt4/GuiView.cpp