I use cloud syncing software (abraunegg/OneDrive) that changes the timestamps of files upon syncing with remote (intended behavior ). This causes every file I edit to display a “The file has changed since…” message upon the second save in one session. Is there any option I can change to ignore these messages, or better yet, force the programs to determine changes based on content, not by timestamps?
this is more likely to compare file contents
you lay try to find your way up from filechangedchecker.cxx (revision 34d8eb4d3f2a75a3a072f5f6a443f959ba99113c) - OpenGrok cross reference for /core/svtools/source/misc/filechangedchecker.cxx
Thank you for your answer!
The code you provided seems to uphold my theory that LibreOffice does decide if a file is changed based on its timestamp.
50 // Retrieve the status - we are only interested in last File
69 // Modified time
70 osl::FileStatus aStatus( osl_FileStatus_Mask_ModifyTime );
71 if (osl::FileBase::E_None != aItem.getFileStatus(aStatus))
72 return false;
73
That said, my original question remains: is there a way to disable these messages?
actually for this error msg :
seems to rather be this one :
- strings.hrc (revision f8a288fdeb6ec0e17d4111beab7701d7b3559062) - OpenGrok cross reference for /core/uui/inc/strings.hrc
- iahndl-locking.cxx (revision ff9ff6018bea7c1a4524c8edca8ef554c74e4b3f) - OpenGrok cross reference for /core/uui/source/iahndl-locking.cxx
not sure where this comes from :
207 if ( !xApprove.is() || !xAbort.is() )
208 return;
you may try to file an enhancement request.