summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/shell.c b/shell.c
index 376f1034..2fb36010 100644
--- a/shell.c
+++ b/shell.c
@@ -846,7 +846,7 @@ group_handle_special(GKeyFile * key_file, ShellModuleEntry * entry,
} else if (g_str_equal(key, "ShowColumnHeaders")) {
headers_visible = g_key_file_get_boolean(key_file, group, key, NULL);
} else if (g_str_has_prefix(key, "ColumnTitle")) {
- GtkTreeViewColumn *column;
+ GtkTreeViewColumn *column = NULL;
gchar *value, *title = strchr(key, '$') + 1;
value = g_key_file_get_value(key_file, group, key, NULL);
@@ -863,8 +863,10 @@ group_handle_special(GKeyFile * key_file, ShellModuleEntry * entry,
column = shell->info->col_progress;
}
- gtk_tree_view_column_set_title(column, value);
- gtk_tree_view_column_set_visible(column, TRUE);
+ if (column) {
+ gtk_tree_view_column_set_title(column, value);
+ gtk_tree_view_column_set_visible(column, TRUE);
+ }
g_free(value);
} else if (g_str_equal(key, "OrderType")) {
@@ -1253,7 +1255,6 @@ static void module_selected(gpointer data)
ShellModuleEntry *entry;
static ShellModuleEntry *current = NULL;
static gboolean updating = FALSE;
-
/* Gets the currently selected item on the left-side TreeView; if there is no
selection, silently return */