mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
de1af88928
commit
1f9f037af0
@ -226,6 +226,12 @@ void gnc_state_save (const QofSession *session)
|
|||||||
{
|
{
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
|
if (!qof_session_get_url(session))
|
||||||
|
{
|
||||||
|
DEBUG("No file associated with session - skip state saving");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
gnc_state_set_base (session);
|
gnc_state_set_base (session);
|
||||||
|
|
||||||
/* Write it all out to disk */
|
/* Write it all out to disk */
|
||||||
@ -246,7 +252,7 @@ GKeyFile *gnc_state_get_current (void)
|
|||||||
{
|
{
|
||||||
if (!state_file)
|
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 ();
|
state_file = g_key_file_new ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user