<p>When using New Project/Open project dialogs or the recent project files submenu, there's no need to confirm closing the project (so long as the dialogs can be cancelled before closing the session). It's unlikely those actions are done by accident. I've kept confirmation for opening a project file from the command line, in case it was a glob mistake. OSX confirmation is kept because I'm not sure what the OSX code is for and also can't test.</p>
<ul>
<li>Make Open Project dialog cancellable without closing existing session</li>
<li>Opening recent projects: Don't ask whether to close current project</li>
<li>Make New Project dialog cancellable without closing existing session (this one needed some refactoring)</li>
</ul>
<p>These 3 are in separate commits, probably best to view commits separately.<br>
This also probably makes <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="451170746" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2171" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2171/hovercard" href="https://github.com/geany/geany/pull/2171">#2171</a> unnecessary.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Make Open Project dialog cancellable without closing existing session</li>
  <li>Make New Project dialog cancellable without closing existing session</li>
  <li>Opening recent projects: Don't ask whether to close current project</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2178/files#diff-0">src/project.c</a>
    (91)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2178/files#diff-1">src/ui_utils.c</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2178.patch'>https://github.com/geany/geany/pull/2178.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2178.diff'>https://github.com/geany/geany/pull/2178.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/pull/2178?email_source=notifications&email_token=AAIOWJ24Z3CSQYVZYQNDXHTPZPOG7A5CNFSM4HWHUMYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYMT6GQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ67VA4YFH5KOKVMEKLPZPOG7ANCNFSM4HWHUMYA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ74BVHFAD2XRYSWSN3PZPOG7A5CNFSM4HWHUMYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYMT6GQ.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/pull/2178?email_source=notifications\u0026email_token=AAIOWJ24Z3CSQYVZYQNDXHTPZPOG7A5CNFSM4HWHUMYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYMT6GQ",
"url": "https://github.com/geany/geany/pull/2178?email_source=notifications\u0026email_token=AAIOWJ24Z3CSQYVZYQNDXHTPZPOG7A5CNFSM4HWHUMYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYMT6GQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>