diff options
Diffstat (limited to 'src/edit_publish_dialog.c')
-rw-r--r-- | src/edit_publish_dialog.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/edit_publish_dialog.c b/src/edit_publish_dialog.c index 16cee5ac..abb6beb4 100644 --- a/src/edit_publish_dialog.c +++ b/src/edit_publish_dialog.c | |||
@@ -644,6 +644,16 @@ GNUNET_GTK_edit_publish_dialog (int *do_index, | |||
644 | GNUNET_break (0); | 644 | GNUNET_break (0); |
645 | return; | 645 | return; |
646 | } | 646 | } |
647 | if (GNUNET_FS_file_information_is_directory (fip)) | ||
648 | { | ||
649 | /* indexing does not apply to directories */ | ||
650 | gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder, | ||
651 | "GNUNET_GTK_edit_file_information_index_check_button"))); | ||
652 | gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder, | ||
653 | "GNUNET_GTK_edit_file_information_index_label"))); | ||
654 | |||
655 | } | ||
656 | |||
647 | ad = GTK_WIDGET (gtk_builder_get_object (builder, | 657 | ad = GTK_WIDGET (gtk_builder_get_object (builder, |
648 | "GNUNET_GTK_edit_file_information_dialog")); | 658 | "GNUNET_GTK_edit_file_information_dialog")); |
649 | ls = GTK_LIST_STORE (gtk_builder_get_object (builder, | 659 | ls = GTK_LIST_STORE (gtk_builder_get_object (builder, |