Commit 1bba6dd1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Cosimo Cecchi
Browse files

Fix initial setup

The default value we get from gsettings for the logfiles key
is not NULL, but a string array of length 0.
parent 430dfa36
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment