From 4cd8389f065a75eec32cc17634dd9697b8dfb37b Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Sun, 28 May 2006 02:23:37 +0000 Subject: [PATCH] The description for the "sort_column" gconf key of the tree_views says, "Possible values for this setting are the name of any column in this dialog (see the column_order key) or the keyword 'none'." The third click on a column header removes the sorting by that column. This patch will now store 'none' for the sort_column in that case. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14213 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/gnc-tree-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gnome-utils/gnc-tree-view.c b/src/gnome-utils/gnc-tree-view.c index 9adc1e3e30..278bd1c723 100644 --- a/src/gnome-utils/gnc-tree-view.c +++ b/src/gnome-utils/gnc-tree-view.c @@ -622,6 +622,9 @@ gtk_tree_view_sort_column_changed_cb (GtkTreeSortable *treesortable, column = view_column_find_by_model_id (view, id); column_pref_name = g_object_get_data(G_OBJECT(column), PREF_NAME); + if (!column_pref_name) + column_pref_name = "none"; + /* Store the values in gconf */ gconf_section = priv->gconf_section; gnc_gconf_set_string(gconf_section, GCONF_KEY_SORT_COLUMN,