]> git.lyx.org Git - features.git/commit
Do not kill the undo stack when doing a Save As...
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 21 Aug 2012 10:19:18 +0000 (12:19 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 21 Aug 2012 10:21:42 +0000 (12:21 +0200)
commit824fe175112559af42fc42da889a60dc7ee465d1
treea8b3dafe3219c7d8aee1fb30c8ef484d0e649fe4
parent3bf5d562b939050c31905111902a1b0a14ae3df5
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
status.20x