https://bugs.kde.org/show_bug.cgi?id=400541
Bug ID: 400541 Summary: KDirWatch::stopScan affects other KDirWatch instances Product: frameworks-kcoreaddons Version: 5.51.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: mp...@kde.org Reporter: michel.lud...@kdemail.net CC: kdelibs-b...@kde.org Target Milestone: --- Created attachment 116018 --> https://bugs.kde.org/attachment.cgi?id=116018&action=edit test case KDirWatch::stopScan affects other KDirWatch instances, see attached test case. The problem seems to be caused by KDirWatch::stopScan() setting the variable _isStopped to false inside the KDirWatchPrivate object that is shared (per thread) among all the KDirWatch instances. If one KDirWatch has set _isStopped to false, a second instance that wants to add a file will copy the _isStopped setting (= false) from within the KDirWatchPrivate::Client constructor. Possible fix: the _isStopped setting should be managed *per* KDirWatch instance and not inside the global KDirWatchPrivate object STEPS TO REPRODUCE compile & run attached test case -- You are receiving this mail because: You are watching all bug changes.