diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-02 18:06:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-02 18:06:26 +0000 |
commit | 21ad99e540121a1fef25e955b1e3738972a74008 (patch) | |
tree | 1204ac561610c7e524c54fa9578f3b5b8e44a41e /src/conversation/gnunet-conversation-gtk_contacts.c | |
parent | bbac53a2496a241db1f8028b7b0b645ab0f66c1a (diff) | |
download | gnunet-gtk-21ad99e540121a1fef25e955b1e3738972a74008.tar.gz gnunet-gtk-21ad99e540121a1fef25e955b1e3738972a74008.zip |
-misc minor fixes
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk_contacts.c')
-rw-r--r-- | src/conversation/gnunet-conversation-gtk_contacts.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_contacts.c b/src/conversation/gnunet-conversation-gtk_contacts.c index b080c8fc..531d5256 100644 --- a/src/conversation/gnunet-conversation-gtk_contacts.c +++ b/src/conversation/gnunet-conversation-gtk_contacts.c | |||
@@ -28,8 +28,8 @@ | |||
28 | */ | 28 | */ |
29 | #include "gnunet-conversation-gtk.h" | 29 | #include "gnunet-conversation-gtk.h" |
30 | #include "gnunet-conversation-gtk_contacts.h" | 30 | #include "gnunet-conversation-gtk_contacts.h" |
31 | #include "gnunet-conversation-gtk_egos.h" | ||
32 | #include "gnunet-conversation-gtk_phone.h" | 31 | #include "gnunet-conversation-gtk_phone.h" |
32 | #include "gnunet-conversation-gtk_zones.h" | ||
33 | 33 | ||
34 | 34 | ||
35 | /** | 35 | /** |
@@ -252,15 +252,20 @@ gnunet_conversation_gtk_contacts_zone_combobox_changed_cb (GtkComboBox *widget, | |||
252 | struct GNUNET_IDENTITY_Ego *ego; | 252 | struct GNUNET_IDENTITY_Ego *ego; |
253 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *temp_zone_pkey; | 253 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *temp_zone_pkey; |
254 | 254 | ||
255 | ego = GCG_EGOS_get_selected_ego (); | ||
256 | temp_zone_pkey = GNUNET_IDENTITY_ego_get_private_key (ego); | ||
257 | if (NULL != zone_mon) | 255 | if (NULL != zone_mon) |
258 | { | 256 | { |
259 | GNUNET_NAMESTORE_zone_monitor_stop (zone_mon); | 257 | GNUNET_NAMESTORE_zone_monitor_stop (zone_mon); |
260 | zone_mon = NULL; | 258 | zone_mon = NULL; |
261 | } | 259 | } |
262 | gtk_list_store_clear (contacts_liststore); | 260 | gtk_list_store_clear (contacts_liststore); |
261 | ego = GCG_ZONES_get_selected_zone (); | ||
262 | if (NULL == ego) | ||
263 | { | ||
264 | /* ego deselected (likely shutdown) */ | ||
265 | return; | ||
266 | } | ||
263 | gtk_widget_hide (contacts_treeview); | 267 | gtk_widget_hide (contacts_treeview); |
268 | temp_zone_pkey = GNUNET_IDENTITY_ego_get_private_key (ego); | ||
264 | zone_mon = GNUNET_NAMESTORE_zone_monitor_start (GCG_get_configuration (), | 269 | zone_mon = GNUNET_NAMESTORE_zone_monitor_start (GCG_get_configuration (), |
265 | temp_zone_pkey, | 270 | temp_zone_pkey, |
266 | GNUNET_YES, | 271 | GNUNET_YES, |