<p>There is a problem when there are multiple tabs added by plugins: if<br>
on_project_dialog_open() is called and Project Organizer stores<br>
the index of the tab and then another plugin adds a tab before the<br>
Project Organizer's tab, then the stored index becomes invalid which<br>
can lead to not correctly removing the tab from the dialog.</p>

<p>Instead store a pointer of the added tab widget and remove the widget<br>
when the properties dialog is closed.</p>

<p>Fixes <a href="https://github.com/geany/geany-plugins/issues/444" class="issue-link js-issue-link" data-url="https://github.com/geany/geany-plugins/issues/444" data-id="159843208" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#444</a> </p>

<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/448'>https://github.com/geany/geany-plugins/pull/448</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>projectorganizer: Fix multiple tabs in Project Properties</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/448/files#diff-0">projectorganizer/src/prjorg-main.c</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/448/files#diff-1">projectorganizer/src/prjorg-project.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/448/files#diff-2">projectorganizer/src/prjorg-project.h</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/448.patch'>https://github.com/geany/geany-plugins/pull/448.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/448.diff'>https://github.com/geany/geany-plugins/pull/448.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/448">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJyh1tX8MpUTVio21Eg6N-sodaKGrks5qMAo-gaJpZM4I2aIu">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-p6itK8lzKVceiEVTxwjlNdjsDkks5qMAo-gaJpZM4I2aIu.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/448"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>