commit bcdfee59a05f0e25c876bde4297a64f3c2257391
parent 112c741bb6863d555ddb14e619c280afd79445ae
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 13 Apr 2022 22:24:31 +0200
-fix auto-selection of first policy
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c b/src/anastasis/anastasis-gtk_action.c
@@ -1821,10 +1821,10 @@ expand_policy_list (void *cls,
{
GtkListStore *ls = cls;
GtkTreeIter iter;
- bool first;
+ bool have_first;
- first = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (ls),
- &iter);
+ have_first = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (ls),
+ &iter);
gtk_list_store_insert_with_values (
ls,
&iter,
@@ -1836,7 +1836,7 @@ expand_policy_list (void *cls,
AG_SSMC_POLICY_DATE_STRING, GNUNET_TIME_timestamp2s (server_time),
AG_SSMC_POLICY_DATE_NUMERIC, (guint64) server_time.abs_time.abs_value_us,
-1);
- if (first)
+ if (! have_first)
{
GtkTreeSelection *selection;