]> git.lyx.org Git - features.git/commit
Unhide buffers that are marked dirty as a result of external modifications
authorGuillaume MM <gm@lyx.org>
Sat, 10 Jun 2017 19:51:44 +0000 (21:51 +0200)
committerGuillaume MM <gm@lyx.org>
Sun, 11 Jun 2017 17:51:17 +0000 (19:51 +0200)
commit5fda4e85c7c96c5aa082216ebbb948fd00814105
treed5bf9f3bc6cc613c7b97d1a2b3b6059dd3921385
parentfd6189b7e323c49c6af1948a600741eef01caa79
Unhide buffers that are marked dirty as a result of external modifications

Several comments in the code point to the fact that hidden buffers are assumed
to be clean.

The other solution was to adapt the closing & saving code to take into account
hidden dirty buffers. Experience shows that it is more useful to unhide the
buffers at the moment of the external modification, in the context of a git
workflow where one has to reload the modified children buffers one-by-one.

Fixes crash at #10603
src/Buffer.cpp
src/frontends/Application.h
src/frontends/WorkAreaManager.cpp
src/frontends/WorkAreaManager.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h