Ignore File has changed message

I use cloud syncing software (abraunegg/OneDrive) that changes the timestamps of files upon syncing with remote (intended behavior :smiling_face_with_tear:). 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?

1 Like

this is more likely to compare file contents :thinking:

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 : image

seems to rather be this one :

not sure where this comes from :

207  if ( !xApprove.is() || !xAbort.is() )
208          return;

you may try to file an enhancement request.

1 Like