When BufferView::Pimpl::loadLyXFile is invoked to load a file that is
already loaded, the user is asked whether he wants to just switch or
re-load the file. The following patch(es) chnage the behavior so that,
when the buffer is clean, the switch solution is automatically
selected.

Does this patch handle the scenario I provided before? Namely, what if
1. lyx opens a file (clean)
2. the file is changed out of lyx.
3. lyx reopen the file.  Buffer is still clean, lyx refuse to reload.

The second step is not that unusual.. For example, I may hand-edit the
lyx file to change figure file names, or the file may be replaced by a
svn update...

vim keeps track of file date to handle such situations, it actually
checks disk files from time to time and ask if you want to reload a
changed file.

Bo

Reply via email to