Don't print useless error message when app monitor config file does not exist

This warning was printed even when app monitoring was disabled. It's not needed anyay since we'll warn on saving if an error occurs.
This commit is contained in:
Milan Bouchet-Valat 2009-05-04 19:35:29 +02:00 committed by Owen W. Taylor
parent b7d3640b49
commit 4ef655ffce

View File

@ -913,10 +913,9 @@ restore_from_file (ShellAppMonitor *monitor)
input = g_file_read (monitor->configfile, NULL, &error); input = g_file_read (monitor->configfile, NULL, &error);
if (error) if (error)
{ {
if (error->code == G_IO_ERROR_NOT_FOUND) if (error->code != G_IO_ERROR_NOT_FOUND)
g_message ("No applications usage data file found. This is normal if you start the program for the first time.");
else
g_warning ("Could not load applications usage data: %s", error->message); g_warning ("Could not load applications usage data: %s", error->message);
g_error_free (error); g_error_free (error);
return; return;
} }