From 4ef655ffcebe15a69ff1ca82ac35996e7b387f79 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Mon, 4 May 2009 19:35:29 +0200 Subject: [PATCH] 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. --- src/shell-app-monitor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c index 63e7218e4..1ba1d9dfb 100644 --- a/src/shell-app-monitor.c +++ b/src/shell-app-monitor.c @@ -913,10 +913,9 @@ restore_from_file (ShellAppMonitor *monitor) input = g_file_read (monitor->configfile, NULL, &error); if (error) { - 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 + if (error->code != G_IO_ERROR_NOT_FOUND) g_warning ("Could not load applications usage data: %s", error->message); + g_error_free (error); return; }