[Github-comments] [geany/geany] Possible Data Loss if a file save fails during close (#1147)
Colomban Wendling
notifications at xxxxx
Sat Jul 23 14:21:05 UTC 2016
> ```C
/* Returns false when quitting is aborted due to user cancellation */
gboolean main_quit(void)
{
main_status.quitting = TRUE;
>
if (! check_no_unsaved()) // if there are some unsaved files
{
if (document_account_for_unsaved()) // if saving them was successfully dealt with
{
do_main_quit(); // quit!
return TRUE;
}
}
/* […] */
>
// abort quit
main_status.quitting = FALSE;
return FALSE;
}
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1147#issuecomment-234720688
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160723/f3c953e7/attachment.html>
More information about the Github-comments
mailing list