Disable delete owner feature for now, it causes a crash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20630 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2011-05-11 21:52:39 +00:00
parent c89153a954
commit f20f27ba1d

View File

@ -141,11 +141,11 @@ static GtkActionEntry gnc_plugin_page_owner_tree_actions [] =
N_("Edit the selected owner"), N_("Edit the selected owner"),
G_CALLBACK (gnc_plugin_page_owner_tree_cmd_edit_owner) G_CALLBACK (gnc_plugin_page_owner_tree_cmd_edit_owner)
}, },
{ /* FIXME disabled due to crash {
"EditDeleteOwnerAction", GNC_STOCK_DELETE_ACCOUNT, N_("_Delete Owner..."), "Delete", "EditDeleteOwnerAction", GNC_STOCK_DELETE_ACCOUNT, N_("_Delete Owner..."), "Delete",
N_("Delete selected owner"), N_("Delete selected owner"),
G_CALLBACK (gnc_plugin_page_owner_tree_cmd_delete_owner) G_CALLBACK (gnc_plugin_page_owner_tree_cmd_delete_owner)
}, }, */
/* View menu */ /* View menu */
{ {
@ -162,7 +162,7 @@ static guint gnc_plugin_page_owner_tree_n_actions = G_N_ELEMENTS (gnc_plugin_pag
static const gchar *actions_requiring_owner[] = static const gchar *actions_requiring_owner[] =
{ {
"EditEditOwnerAction", "EditEditOwnerAction",
"EditDeleteOwnerAction", /* FIXME disabled due to crash "EditDeleteOwnerAction", */
NULL NULL
}; };
@ -172,7 +172,7 @@ static action_toolbar_labels toolbar_labels[] =
{ {
{ "EditEditOwnerAction", N_("Edit") }, { "EditEditOwnerAction", N_("Edit") },
{ "BusinessNewOwnerAction", N_("New") }, { "BusinessNewOwnerAction", N_("New") },
{ "EditDeleteOwnerAction", N_("Delete") }, /* FIXME disable due to crash { "EditDeleteOwnerAction", N_("Delete") },*/
{ NULL, NULL }, { NULL, NULL },
}; };
@ -791,6 +791,8 @@ gnc_plugin_page_owner_tree_cmd_delete_owner (GtkAction *action, GncPluginPageOwn
if (GTK_RESPONSE_ACCEPT == response) if (GTK_RESPONSE_ACCEPT == response)
{ {
/* FIXME The code below results in a crash.
* The corresponding menu item/toolbar button is disabled until this is fixed. */
gnc_set_busy_cursor(NULL, TRUE); gnc_set_busy_cursor(NULL, TRUE);
gnc_suspend_gui_refresh (); gnc_suspend_gui_refresh ();
gncOwnerBeginEdit (owner); gncOwnerBeginEdit (owner);