Pavel Sanda schreef:
Vincent van Ravesteijn wrote:
hrrm. we used loadDocumend before. does it mean that features like scrolling to the position when the file was last closed is killed?
When do you want to restore the position then ?

save->check-in->reload->the same postion.

dont have trunk here, but for sure this works in branch.

Yes, this only works when you reload a buffer that has not changed ?!? (Why do we reload it then ? Only for the read-only status ?). Previously the BufferView was destroyed which saved the last position, and the buffer was newly created and the position is restored. Now, the BufferView remains, so the cursor doesn't need to be repositioned.

there were also checks for file readability and its existence. this
is also bypassed?
These checks are still in Buffer::loadLyXFile(..).

i see now, just hope, that s.isReadableFile() return false
when file stops to exist.

It does. The only difference is that the buffer will remain to exist, while previously it was closed and not opened again.

pavel

Reply via email to