Bug 379359 - KDirWatch stopDirScan still emitting dirty signal
Summary: KDirWatch stopDirScan still emitting dirty signal
Status: REPORTED
Alias: None
Product: frameworks-kcoreaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-29 19:59 UTC by Martin Koller
Modified: 2022-11-06 10:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
testprogram (1008 bytes, text/x-c++src)
2017-04-29 19:59 UTC, Martin Koller
Details
cmake file to compile main.cxx (350 bytes, text/plain)
2017-04-29 19:59 UTC, Martin Koller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2017-04-29 19:59:09 UTC
Created attachment 105277 [details]
testprogram

(I'm on openSuse Leap 42.2, KF5 5.33.0)

From the docs I understand that when I call 

KDirWatch::stopDirScan(dir);
... create files in the dir ...
KDirWatch::restartDirScan(dir)

it should not emit the dirty signal when I run this, right ?

Well, it does.
I've attached a small test.

When I modify the code and use stopScan() ... create ... startScan()
I still receive the dirty signal with the path to the file I created.

Only way it works without signal is
removeDir(dir) ... create ... addDir(dir)

Is this how it's supposed to work ?
Comment 1 Martin Koller 2017-04-29 19:59:54 UTC
Created attachment 105278 [details]
cmake file to compile main.cxx
Comment 2 Justin Zobel 2022-11-06 09:23:12 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Martin Koller 2022-11-06 10:14:14 UTC
still the same

Operating System: openSUSE Tumbleweed 20221031
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.5-1-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: HP
Product Name: HP ProBook 650 G2