diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_event-handler.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c index 4d5ea6a3..bfb8645a 100644 --- a/src/fs/gnunet-fs-gtk_event-handler.c +++ b/src/fs/gnunet-fs-gtk_event-handler.c | |||
@@ -4047,18 +4047,30 @@ GNUNET_GTK_fs_event_handler (void *cls, | |||
4047 | GNUNET_FS_GTK_unindex_handle_stop_ (info->value.unindex.cctx); | 4047 | GNUNET_FS_GTK_unindex_handle_stop_ (info->value.unindex.cctx); |
4048 | return NULL; | 4048 | return NULL; |
4049 | case GNUNET_FS_STATUS_UNINDEX_PROGRESS: | 4049 | case GNUNET_FS_STATUS_UNINDEX_PROGRESS: |
4050 | GNUNET_FS_GTK_unindex_handle_progress_ (info->value.unindex.cctx, | 4050 | /* info->value.unindex.cctx is NULL if the unindexing was |
4051 | info->value.unindex.completed); | 4051 | triggered by a *failed* publishing operation; in this case |
4052 | we don't do anything in the GUI but just clean up when | ||
4053 | the operation is complete (or fails) */ | ||
4054 | if (NULL != info->value.unindex.cctx) | ||
4055 | GNUNET_FS_GTK_unindex_handle_progress_ (info->value.unindex.cctx, | ||
4056 | info->value.unindex.completed); | ||
4052 | return info->value.unindex.cctx; | 4057 | return info->value.unindex.cctx; |
4053 | case GNUNET_FS_STATUS_UNINDEX_ERROR: | 4058 | case GNUNET_FS_STATUS_UNINDEX_ERROR: |
4054 | GNUNET_FS_GTK_unindex_handle_error_ (info->value.unindex.cctx, | 4059 | if (NULL != info->value.unindex.cctx) |
4055 | info->value.unindex.specifics.error.message); | 4060 | GNUNET_FS_GTK_unindex_handle_error_ (info->value.unindex.cctx, |
4061 | info->value.unindex.specifics.error.message); | ||
4062 | else | ||
4063 | GNUNET_FS_unindex_stop (info->value.unindex.uc); | ||
4056 | return info->value.unindex.cctx; | 4064 | return info->value.unindex.cctx; |
4057 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: | 4065 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: |
4058 | GNUNET_FS_GTK_unindex_handle_completed_ (info->value.unindex.cctx); | 4066 | if (NULL != info->value.unindex.cctx) |
4067 | GNUNET_FS_GTK_unindex_handle_completed_ (info->value.unindex.cctx); | ||
4068 | else | ||
4069 | GNUNET_FS_unindex_stop (info->value.unindex.uc); | ||
4059 | return info->value.unindex.cctx; | 4070 | return info->value.unindex.cctx; |
4060 | case GNUNET_FS_STATUS_UNINDEX_STOPPED: | 4071 | case GNUNET_FS_STATUS_UNINDEX_STOPPED: |
4061 | GNUNET_FS_GTK_unindex_handle_stop_ (info->value.unindex.cctx); | 4072 | if (NULL != info->value.unindex.cctx) |
4073 | GNUNET_FS_GTK_unindex_handle_stop_ (info->value.unindex.cctx); | ||
4062 | return NULL; | 4074 | return NULL; |
4063 | default: | 4075 | default: |
4064 | GNUNET_break (0); | 4076 | GNUNET_break (0); |