From a3083042bb9c69193cc43105e6c9d045bd79e8b2 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Fri, 20 Aug 2004 19:53:52 +0000 Subject: merged bugfix from KDE Head: Don't KDirWatch for own changes --- (limited to 'kabc/plugins/dir/resourcedir.cpp') diff --git a/kabc/plugins/dir/resourcedir.cpp b/kabc/plugins/dir/resourcedir.cpp index eccd482..fac06a1 100644 --- a/kabc/plugins/dir/resourcedir.cpp +++ b/kabc/plugins/dir/resourcedir.cpp @@ -210,6 +210,8 @@ bool ResourceDir::save( Ticket *ticket ) AddressBook::Iterator it; bool ok = true; + mDirWatch.stopScan(); + for ( it = addressBook()->begin(); it != addressBook()->end(); ++it ) { if ( (*it).resource() != this || !(*it).changed() ) continue; @@ -227,6 +229,7 @@ bool ResourceDir::save( Ticket *ticket ) file.close(); } + mDirWatch.startScan(); delete ticket; unlock( mPath ); -- cgit v0.9.0.2