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
This commit is contained in:
Chris Shoemaker 2006-05-28 02:23:37 +00:00
parent f4c3a2499c
commit 4cd8389f06

View File

@ -622,6 +622,9 @@ gtk_tree_view_sort_column_changed_cb (GtkTreeSortable *treesortable,
column = view_column_find_by_model_id (view, id); column = view_column_find_by_model_id (view, id);
column_pref_name = g_object_get_data(G_OBJECT(column), PREF_NAME); 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 */ /* Store the values in gconf */
gconf_section = priv->gconf_section; gconf_section = priv->gconf_section;
gnc_gconf_set_string(gconf_section, GCONF_KEY_SORT_COLUMN, gnc_gconf_set_string(gconf_section, GCONF_KEY_SORT_COLUMN,