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:
parent
217bf8be3c
commit
28ee2d71f0
@ -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>
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user