GApplication: g_settings_sync() on exit

Call g_settings_sync() just before g_applcation_run() returns.  This is
really the correct thing to do in every case that you're using GSettings
and it prevents every single application from having to do it for
themselves.

Closes bug #647419.
This commit is contained in:
Ryan Lortie 2011-04-11 03:30:24 -04:00
parent 68aef33404
commit ff57ed5d6a

View File

@ -1329,6 +1329,8 @@ g_application_run (GApplication *application,
if (application->priv->impl)
g_application_impl_flush (application->priv->impl);
g_settings_sync ();
return status;
}