KDirWatch emitting dirty signal many times for one change

Anders Lund anders at alweb.dk
Tue Mar 23 16:12:28 GMT 2004


On Tuesday 23 March 2004 16:54, Matthias Kretz wrote:
> > In Kate, we simply removes the file from the dirwatcher during save.
>
> I tried that. But since I have to readd the file again after saving I still
> get all the notifications.
> When do you readd the file? Right after saving or do you use a timer?

In  KateDocument::saveFile(), right away.

The file is kdelibs/kate/part/katedocument.cpp

One thing: we dont relead the file automatically, and i don't know if we 
chekced how many signals is recieved.

-anders

-- 
Document your code
Check before comitting
Shoot spammers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040323/b9aacf97/attachment.sig>


More information about the kde-core-devel mailing list