KDirWatch emitting dirty signal many times for one change

Matthias Kretz kretz at kde.org
Wed Mar 24 17:07:47 GMT 2004


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

I don't know if this could work, but in KDirWatchPrivate::famEventReceived 
there's a loop over all pending FAM events. Wouldn't it be possible to save 
the events into a list (or perhaps a map) and for every event check whether 
it already exists. Then all duplicates should be gone and you can start 
iterating over the list and emitting the signals.
If this doesn't fix it perhaps the iteration over the list can be done after a 
short time so that more incoming FAM events can be checked for duplicates.

On Wednesday 24 March 2004 16:18, Josef Weidendorfer wrote:
> If there is a general way to improve it, I'm open for ideas.

- -- 
C'ya
        Matthias
________________________________________________________
Matthias Kretz (Germany)                          <><
http://Vir.homeip.net/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAYcBjyg4WnCj6OIoRAix/AKDzshzY9uxROTeru94c7CFFUaBvQgCg5msn
/kp2zzEbE/jjsA/uPpyNjBA=
=OBMu
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list