<table><tr><td style="">progwolff created this revision.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7697" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>KDirWatch emits a dirty signal for a watched directory when a file is ceated in this directory.<br />
However, currently this signal is not emitted when a file is added that is watched individually.<br />
With this patch, a dirty signal for the directory is sent even if a watched file is added.</p>

<p>This fixes a bug in Okular.</p>

<p>BUG: 384185</p>

<p>See also the discussion in <a href="https://phabricator.kde.org/D7671" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D7671</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Watched a directory and a file in this directory.<br />
Deleted and recreated the file.</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">a "deleted" signal for the file is emitted</li>
<li class="remarkup-list-item">a "dirty" signal for the directory is emitted</li>
<li class="remarkup-list-item">a "created" signal for the file is emitted</li>
<li class="remarkup-list-item">a "dirty" signal for the directory is emitted</li>
</ol>

<p>Tested only with inotify. There may be other places for other backends which need changes.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7697" rel="noreferrer">https://phabricator.kde.org/D7697</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/io/kdirwatch.cpp</div></div></div><br /><div><strong>To: </strong>progwolff, Frameworks<br /></div>