[Gnucash-changes] r14213 - gnucash/trunk/src/gnome-utils - The description for the "sort_column" gconf key of the tree_views says,

Chris Shoemaker chris at cvs.gnucash.org
Sat May 27 22:23:38 EDT 2006


Author: chris
Date: 2006-05-27 22:23:37 -0400 (Sat, 27 May 2006)
New Revision: 14213
Trac: http://svn.gnucash.org/trac/changeset/14213

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-view.c
Log:
   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.


Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-05-27 19:05:41 UTC (rev 14212)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-05-28 02:23:37 UTC (rev 14213)
@@ -622,6 +622,9 @@
   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, 



More information about the gnucash-changes mailing list