Skip to content

Commit

Permalink
The description for the "sort_column" gconf key of the tree_views says,
Browse files Browse the repository at this point in the history
   "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
  • Loading branch information
spot committed May 28, 2006
1 parent f4c3a24 commit 4cd8389
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gnome-utils/gnc-tree-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4cd8389

Please sign in to comment.