KDirWatch question

Andras Mantia amantia at kde.org
Mon Dec 20 17:46:27 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 20 December 2004 19:04, Anders Lund wrote:
> On Monday 20 December 2004 17:46, Andras Mantia wrote:
> > I used to have something similar (compare by content the file as it
> > was when it was opened with the version as it is when the dirty
> > signal comes), but I got rid of the temporary file, and now I have
> > to find another way, and would be much nicer if KDirWatch handles
> > this job as it might be useful for others as well.
>
> We don't use a temporary file. A md5sum of the document is created
> and stored inside the doucment object when it is opened, and whenever
> it changes on disk, a md5sum of the disk file contents is created and
> compared to that.

Hm, good idea. :-)

Andras
>
> -anders

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBxw/4TQdfac6L/08RAi8iAKDlArCCGHKE0kUk7iDdEL+siJztxACdHWi4
54UmL9XIKMBZtZVFijjDbN8=
=S9km
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list