diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-21 18:05:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-21 18:05:02 +0000 |
commit | 25b419468982f897d63c0396c27d7ced826d0b68 (patch) | |
tree | d6dadd427486004625f7d4e9533f5a81c78b1ed8 | |
parent | 939a5ed16a85c05d7b8a40dc5c9f11fb5ddb18ae (diff) | |
download | gnunet-gtk-25b419468982f897d63c0396c27d7ced826d0b68.tar.gz gnunet-gtk-25b419468982f897d63c0396c27d7ced826d0b68.zip |
-active is counter, not zero/one
-rw-r--r-- | src/peerinfo/gnunet-peerinfo-gtk.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c index 7c59c290..611a5e0a 100644 --- a/src/peerinfo/gnunet-peerinfo-gtk.c +++ b/src/peerinfo/gnunet-peerinfo-gtk.c | |||
@@ -451,11 +451,17 @@ status_cb (void *cls, | |||
451 | GtkTreeIter iter; | 451 | GtkTreeIter iter; |
452 | GtkTreePath *path; | 452 | GtkTreePath *path; |
453 | 453 | ||
454 | if (GNUNET_YES != address_active) | 454 | if (0 == address_active) |
455 | return; | 455 | return; |
456 | info = GNUNET_CONTAINER_multipeermap_get (peer2info, &address->peer); | 456 | info = GNUNET_CONTAINER_multipeermap_get (peer2info, &address->peer); |
457 | if (NULL == info) | 457 | if (NULL == info) |
458 | return; /* should rarely happen... */ | 458 | { |
459 | /* should rarely happen... */ | ||
460 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
461 | "Entry for peer %s not found\n", | ||
462 | GNUNET_i2s (&address->peer)); | ||
463 | return; | ||
464 | } | ||
459 | path = gtk_tree_row_reference_get_path (info->rr); | 465 | path = gtk_tree_row_reference_get_path (info->rr); |
460 | GNUNET_assert (NULL != path); | 466 | GNUNET_assert (NULL != path); |
461 | GNUNET_assert (TRUE == gtk_tree_model_get_iter (GTK_TREE_MODEL (ls), &iter, path)); | 467 | GNUNET_assert (TRUE == gtk_tree_model_get_iter (GTK_TREE_MODEL (ls), &iter, path)); |