Skip to content

Commit

Permalink
Fix a GtkWarning in the Account Hierarchy Assistant which occurs if the
Browse files Browse the repository at this point in the history
Example Account file doesn't contain a long description.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22011 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Feb 12, 2012
1 parent a63e86c commit 06a7870
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gnome/assistant-hierarchy.c
Expand Up @@ -500,7 +500,9 @@ categories_tree_selection_changed (GtkTreeSelection *selection,
g_free(text2);
g_free(text);
buffer = gtk_text_view_get_buffer(data->category_description);
gtk_text_buffer_set_text(buffer, gea->long_description, -1);
gtk_text_buffer_set_text(buffer, gea->long_description ?
gea->long_description :
_("No description provided."), -1);

tree_view = gnc_tree_view_account_new_with_root (gea->root, FALSE);
/* Override the normal fixed (user settable) sizing */
Expand Down

0 comments on commit 06a7870

Please sign in to comment.