mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[dialog-custom-report] don't allocate GValue
receive GncGUID* directly from GtkTreeModel
This commit is contained in:
parent
39060d8bde
commit
ca1636643a
@ -640,10 +640,8 @@ gnc_ui_custom_report_edit_name (GncMainWindow * window, SCM scm_guid)
|
|||||||
|
|
||||||
while (valid_iter)
|
while (valid_iter)
|
||||||
{
|
{
|
||||||
GValue value = { 0, };
|
|
||||||
GncGUID *row_guid;
|
GncGUID *row_guid;
|
||||||
gtk_tree_model_get_value (model, &iter, COL_NUM, &value);
|
gtk_tree_model_get (model, &iter, COL_NUM, &row_guid, -1);
|
||||||
row_guid = (GncGUID *) g_value_get_pointer (&value);
|
|
||||||
|
|
||||||
if (guid_equal (guid, row_guid))
|
if (guid_equal (guid, row_guid))
|
||||||
{
|
{
|
||||||
@ -663,7 +661,6 @@ gnc_ui_custom_report_edit_name (GncMainWindow * window, SCM scm_guid)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_value_unset (&value);
|
|
||||||
valid_iter = gtk_tree_model_iter_next (model, &iter);
|
valid_iter = gtk_tree_model_iter_next (model, &iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user