"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gnucash/gnome/dialog-custom-report.c" between
gnucash-5.0.tar.bz2 and gnucash-5.1.tar.bz2

About: GnuCash is personal and small-business financial-accounting software.

dialog-custom-report.c  (gnucash-5.0.tar.bz2):dialog-custom-report.c  (gnucash-5.1.tar.bz2)
skipping to change at line 475 skipping to change at line 475
SCM unique_name_func = scm_c_eval_string("gnc:report-template-has-unique-nam e?"); SCM unique_name_func = scm_c_eval_string("gnc:report-template-has-unique-nam e?");
SCM new_name_scm = scm_from_utf8_string(new_text); SCM new_name_scm = scm_from_utf8_string(new_text);
g_object_set(G_OBJECT(crd->namerenderer), "editable", FALSE, NULL); g_object_set(G_OBJECT(crd->namerenderer), "editable", FALSE, NULL);
if (scm_is_null (guid)) if (scm_is_null (guid))
return; return;
if (scm_is_true (scm_call_2 (unique_name_func, guid, new_name_scm))) if (scm_is_true (scm_call_2 (unique_name_func, guid, new_name_scm)))
{ {
gchar *default_guid = gnc_get_default_invoice_print_report (); gchar *default_guid = gnc_get_default_invoice_print_report ();
gchar *guid_string = scm_to_utf8_string (guid);
custom_report_edit_report_name (guid, crd, new_text); custom_report_edit_report_name (guid, crd, new_text);
// check to see if default report name has been changed // check to see if default report name has been changed
if (g_strcmp0 (default_guid, scm_to_utf8_string (guid)) == 0) if (g_strcmp0 (default_guid, guid_string) == 0)
{ {
QofBook *book = gnc_get_current_book (); QofBook *book = gnc_get_current_book ();
gchar *default_name = qof_book_get_default_invoice_report_name (book ); gchar *default_name = qof_book_get_default_invoice_report_name (book );
if (g_strcmp0 (default_name, new_text) != 0) if (g_strcmp0 (default_name, new_text) != 0)
qof_book_set_default_invoice_report (book, default_guid, new_tex t); qof_book_set_default_invoice_report (book, default_guid, new_tex t);
g_free (default_name); g_free (default_name);
} }
g_free (guid_string);
g_free (default_guid); g_free (default_guid);
} }
else else
gnc_error_dialog (GTK_WINDOW (crd->dialog), "%s", gnc_error_dialog (GTK_WINDOW (crd->dialog), "%s",
_("A saved report configuration with this name already exists, please choose another name.") ); _("A saved report configuration with this name already exists, please choose another name.") );
} }
gboolean gboolean
custom_report_query_tooltip_cb (GtkTreeView *view, custom_report_query_tooltip_cb (GtkTreeView *view,
gint x, gint x,
 End of changes. 3 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)