Close any project before closing all documents so the project

session files are saved.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2190 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-01-25 13:14:38 +00:00
parent 217bf8be3c
commit 28ee2d71f0
3 changed files with 8 additions and 5 deletions

View File

@ -2,6 +2,9 @@
* src/project.c:
Remove unnecessary save of project keyfile.
* src/callbacks.c, src/main.c:
Close any project before closing all documents so the project
session files are saved.
2008-01-23 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -145,14 +145,17 @@ static void quit_app()
configuration_save();
// force close all tabs
// ignore changes for all tabs (already asked user in on_exit_clicked)
for (i = 0; i < doc_array->len; i++)
{
if (doc_list[i].is_valid && doc_list[i].changed)
{
doc_list[i].changed = FALSE; // ignore changes (already asked user in on_exit_clicked)
doc_list[i].changed = FALSE;
}
}
if (app->project != NULL)
project_close(FALSE); // save project session files
on_close_all1_activate(NULL, NULL);
main_quit();

View File

@ -839,9 +839,6 @@ void main_quit()
socket_finalize();
#endif
if (app->project != NULL)
project_close(FALSE);
#ifdef HAVE_PLUGINS
if (want_plugins)
plugins_free();