diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-23 15:32:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-23 15:32:03 +0200 |
commit | 962364a7d1218233f2069f3781125c37beef1651 (patch) | |
tree | 1cebdb1e94165dcae90a3a6b9eedc60d949ab83a | |
parent | d9a8cef3ce2d8015f61b1d24943ca3587b45d093 (diff) | |
download | gnunet-gtk-962364a7d1218233f2069f3781125c37beef1651.tar.gz gnunet-gtk-962364a7d1218233f2069f3781125c37beef1651.zip |
unset model while loading zone for major performance boost (for larger zones)
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index a119b5de..d0af8391 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -2294,6 +2294,8 @@ gnunet_namestore_gtk_public_key_copy_button_clicked_cb (GtkButton *button, | |||
2294 | static void | 2294 | static void |
2295 | zone_sync_proc (void *cls) | 2295 | zone_sync_proc (void *cls) |
2296 | { | 2296 | { |
2297 | gtk_tree_view_set_model (tv, | ||
2298 | tm); | ||
2297 | #if HAVE_QRENCODE_H | 2299 | #if HAVE_QRENCODE_H |
2298 | setup_qrcode (); | 2300 | setup_qrcode (); |
2299 | gtk_widget_show (GTK_WIDGET (get_object ("gnunet_namestore_gtk_qr_image"))); | 2301 | gtk_widget_show (GTK_WIDGET (get_object ("gnunet_namestore_gtk_qr_image"))); |
@@ -2597,6 +2599,8 @@ load_zone (const char *name, | |||
2597 | } | 2599 | } |
2598 | GNUNET_free_non_null (current_pseudonym); | 2600 | GNUNET_free_non_null (current_pseudonym); |
2599 | current_pseudonym = NULL; | 2601 | current_pseudonym = NULL; |
2602 | gtk_tree_view_set_model (tv, | ||
2603 | NULL); | ||
2600 | if (NULL == name) | 2604 | if (NULL == name) |
2601 | return; /* empty zone */ | 2605 | return; /* empty zone */ |
2602 | current_pseudonym = GNUNET_strdup (name); | 2606 | current_pseudonym = GNUNET_strdup (name); |