Suppress a few harmless state file related warnings at startup

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23427 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-11-22 15:33:33 +00:00
parent de1af88928
commit 1f9f037af0

View File

@ -226,6 +226,12 @@ void gnc_state_save (const QofSession *session)
{
GError *error = NULL;
if (!qof_session_get_url(session))
{
DEBUG("No file associated with session - skip state saving");
return;
}
gnc_state_set_base (session);
/* Write it all out to disk */
@ -246,7 +252,7 @@ GKeyFile *gnc_state_get_current (void)
{
if (!state_file)
{
PWARN ("No pre-existing state found, creating new one");
PINFO ("No pre-existing state found, creating new one");
state_file = g_key_file_new ();
}