<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #675.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="288995891" data-permission-text="Title is private" data-url="https://github.com/geany/geany-plugins/issues/675" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/675/hovercard" href="https://github.com/geany/geany-plugins/issues/675">#675</a></p>
<p><code>on_treeview_changed</code> is triggered during <code>treebrowser_tree_store_iter_clear_nodes</code>, leading to a double-delete.</p>
<p>Consistent (as far as I can tell) reproduction steps:</p>
<ol>
<li>Create a folder</li>
<li>Create two new files in folder</li>
<li>Delete second file</li>
</ol>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/1015'>https://github.com/geany/geany-plugins/pull/1015</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>TreeBrowser: Avoid double node clear</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/1015/files#diff-7fbaa1fe1e42051de5f256cd83601b63fde6ebc8e2965dd54de69714e9f10b6c">treebrowser/src/treebrowser.c</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/1015.patch'>https://github.com/geany/geany-plugins/pull/1015.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/1015.diff'>https://github.com/geany/geany-plugins/pull/1015.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/1015">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ23764PM4QMCRUCYM3SKUNTPANCNFSM4SQBXGGQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ62KFDOWGRR6GT74T3SKUNTPA5CNFSM4SQBXGG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KX3JJPA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/1015",
"url": "https://github.com/geany/geany-plugins/pull/1015",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>