[gnome-system-log] Fix initial setup



commit 1bba6dd1ea0b9c288e86a054349faf378fb64107
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 20 21:43:19 2012 -0400

    Fix initial setup
    
    The default value we get from gsettings for the logfiles key
    is not NULL, but a string array of length 0.

 src/logview-app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/logview-app.c b/src/logview-app.c
index f861b82..386ea7a 100644
--- a/src/logview-app.c
+++ b/src/logview-app.c
@@ -347,7 +347,7 @@ logview_app_initialize (LogviewApp *app, char **log_files)
     active_log = logview_prefs_get_active_logfile (priv->prefs);
     logs = logview_prefs_get_stored_logfiles (priv->prefs);
 
-    if (!logs) {
+    if (!logs || !logs[0]) {
       logview_app_first_time_initialize (app);
     } else {
       logview_manager_add_logs_from_names (priv->manager,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]