<p>I don't see it.  <code>main_quit()</code> calls <code>document_account_for_unsaved()</code>, which itself uses <code>dialogs_show_unsaved_file()</code>, that properly return the value of <code>document_save_file()</code> if asked to save the file.  What's wrong here?</p>

<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/issues/1147#issuecomment-234720441">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ1kPpcnPwZu8z_FWOJ2KYJxfCR3qks5qYiIDgaJpZM4JTXT-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3ydllh1oDj8WFP103LPNvzAjyzWks5qYiIDgaJpZM4JTXT-.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/issues/1147#issuecomment-234720441"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>