[gnome-system-log] Reverse the set_active logic



commit be42bcaf1d94f70eb4c38f615562aa4f39c9c3d7
Author: Sebastien Bacher <seb128 ubuntu com>
Date:   Thu Apr 5 16:49:26 2012 +0200

    Reverse the set_active logic
    
    It was wrong since the gsettings port which was leading to have the wrong
    log to be selected in the treeview on start (Closes: #673578)

 src/logview-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/logview-manager.c b/src/logview-manager.c
index a46fe6b..6d6bfb0 100644
--- a/src/logview-manager.c
+++ b/src/logview-manager.c
@@ -353,7 +353,7 @@ logview_manager_add_logs_from_names (LogviewManager *manager,
   op = multiple_creation_op_new (g_strv_length (names));
 
   for (i = 0; names[i]; i++) {
-    set_active = (active != NULL) && (g_ascii_strcasecmp (active, names[i]));
+    set_active = (active != NULL) && (!g_ascii_strcasecmp (active, names[i]));
     logview_manager_add_log_from_name (manager, names[i], set_active,
                                        TRUE);
   }



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