KDirWatch question

Andras Mantia amantia at kde.org
Mon Dec 20 16:46:54 GMT 2004


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

On Monday 20 December 2004 18:21, Anders Lund wrote:
> On Monday 20 December 2004 16:11, Andras Mantia wrote:
> > On Monday 20 December 2004 12:12, Josef Weidendorfer wrote:
> > > A simple access should not trigger any action from KDirWatch.
> > > Or do you talk about overwriting with the same data?
> >
> > A simple touch filename triggers the action as well as a cvs
> > commit. I want to get rid from false positives somehow.
> >
> > Andras
>
> Katepart allready has support for this, the modified on disk
> notification system is using a md5 sum to check if the file is
> actually changed. The relevant class is KateDocument.

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.

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)

iD8DBQFBxwH/TQdfac6L/08RAjzBAKCQHgJliwNEo1pcmmpggGmPhbKvbQCgrB1V
8C7FJJBMMdMTQYYRhDI6xUA=
=0dXZ
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list