mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Utilize the new callback function for sending an error message to the
gui code instead of printing an error on the console. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7395 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3e900c3139
commit
bfdba8a7cd
@ -1643,23 +1643,10 @@ gnc_commit_option(GNCOption *option)
|
||||
name = gnc_option_name(option);
|
||||
section = gnc_option_section(option);
|
||||
|
||||
#if 1
|
||||
{
|
||||
char *full;
|
||||
full = g_strdup_printf("There is a problem with option %s:%s.\n%s",
|
||||
section ? section : "(null)",
|
||||
name ? name : "(null)",
|
||||
message ? message : "(null)");
|
||||
printf("%s\n", full);
|
||||
g_free(full);
|
||||
}
|
||||
#else
|
||||
/* FIXME : figure out how to get this back */
|
||||
gnc_error_dialog("There is a problem with option %s:%s.\n%s",
|
||||
gnc_send_gui_error("There is a problem with option %s:%s.\n%s",
|
||||
section ? section : "(null)",
|
||||
name ? name : "(null)",
|
||||
message ? message : "(null)");
|
||||
#endif
|
||||
|
||||
if (message != NULL)
|
||||
free(message);
|
||||
|
Loading…
Reference in New Issue
Block a user