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:
parent
cfb71b3657
commit
9019973828
@ -191,21 +191,21 @@ on_exit_clicked (GtkWidget *widget, gpointer gdata)
|
|||||||
{
|
{
|
||||||
if (app->pref_main_confirm_exit)
|
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,
|
if (dialogs_show_question_full(GTK_STOCK_QUIT, GTK_STOCK_CANCEL, NULL,
|
||||||
_("Do you really want to quit?")) && on_close_all1_activate(NULL, NULL))
|
_("Do you really want to quit?")) && on_close_all1_activate(NULL, NULL))
|
||||||
{
|
{
|
||||||
|
configuration_save();
|
||||||
destroyapp(NULL, gdata);
|
destroyapp(NULL, gdata);
|
||||||
}
|
}
|
||||||
else app->quitting = FALSE;
|
else app->quitting = FALSE;
|
||||||
}
|
}
|
||||||
else
|
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))
|
if (on_close_all1_activate(NULL, NULL))
|
||||||
{
|
{
|
||||||
configuration_save();
|
|
||||||
destroyapp(NULL, gdata);
|
destroyapp(NULL, gdata);
|
||||||
}
|
}
|
||||||
else app->quitting = FALSE;
|
else app->quitting = FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user