Fixed bug which caused not saving session files when quitting Geany(introduced with r862).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@865 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-10-03 17:54:02 +00:00
parent cfb71b3657
commit 9019973828

View File

@ -191,21 +191,21 @@ on_exit_clicked (GtkWidget *widget, gpointer gdata)
{
if (app->pref_main_confirm_exit)
{
// there is the chance that the user cancel the exit process while closing open
// files, so save the configuration(i.e. the list of open files) first
configuration_save();
if (dialogs_show_question_full(GTK_STOCK_QUIT, GTK_STOCK_CANCEL, NULL,
_("Do you really want to quit?")) && on_close_all1_activate(NULL, NULL))
{
configuration_save();
destroyapp(NULL, gdata);
}
else app->quitting = FALSE;
}
else
{
// there is the chance that the user cancel the exit process while closing open
// files, so save the configuration(i.e. the list of open files) first
configuration_save();
if (on_close_all1_activate(NULL, NULL))
{
configuration_save();
destroyapp(NULL, gdata);
}
else app->quitting = FALSE;