diff options
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r-- | src/plugins/fs/search.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index 71744feb..669477f6 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -183,7 +183,6 @@ fs_search_started(struct FSUI_SearchList * fsui_list, | |||
183 | sizeof(SearchList)); | 183 | sizeof(SearchList)); |
184 | list->searchString | 184 | list->searchString |
185 | = STRDUP(dhead); | 185 | = STRDUP(dhead); |
186 | FREE(description); | ||
187 | list->uri | 186 | list->uri |
188 | = ECRS_dupUri(uri); | 187 | = ECRS_dupUri(uri); |
189 | list->fsui_list | 188 | list->fsui_list |
@@ -306,6 +305,7 @@ fs_search_started(struct FSUI_SearchList * fsui_list, | |||
306 | SEARCH_SUMMARY_RESULT_COUNT, 0, | 305 | SEARCH_SUMMARY_RESULT_COUNT, 0, |
307 | SEARCH_SUMMARY_INTERNAL, list, | 306 | SEARCH_SUMMARY_INTERNAL, list, |
308 | -1); | 307 | -1); |
308 | FREE(description); | ||
309 | path = gtk_tree_model_get_path(GTK_TREE_MODEL(search_summary), | 309 | path = gtk_tree_model_get_path(GTK_TREE_MODEL(search_summary), |
310 | &iter); | 310 | &iter); |
311 | list->summaryViewRowReference | 311 | list->summaryViewRowReference |
@@ -327,6 +327,8 @@ fs_search_started(struct FSUI_SearchList * fsui_list, | |||
327 | fs_search_result_received(list, | 327 | fs_search_result_received(list, |
328 | &results[i], | 328 | &results[i], |
329 | uri); | 329 | uri); |
330 | if (resultCount == 0) /* otherwise already done! */ | ||
331 | updateSearchSummary(list); | ||
330 | 332 | ||
331 | /* insert new page into search notebook */ | 333 | /* insert new page into search notebook */ |
332 | notebook | 334 | notebook |
@@ -669,12 +671,12 @@ static void stopSearch(GtkTreeModel * model, | |||
669 | /** | 671 | /** |
670 | * The stop button in the search summary was clicked. | 672 | * The stop button in the search summary was clicked. |
671 | */ | 673 | */ |
672 | void on_closeSearchSummaryButton_clicked_fs(GtkWidget * treeview, | 674 | void on_closeSearchSummaryButton_clicked_fs(GtkWidget * closeButton, |
673 | GtkWidget * closeButton) { | 675 | GtkWidget * treeview) { |
674 | GtkTreeSelection * selection; | 676 | GtkTreeSelection * selection; |
675 | 677 | ||
676 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | 678 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); |
677 | gtk_tree_selection_selected_foreach | 679 | ggc_tree_selection_selected_foreach |
678 | (selection, | 680 | (selection, |
679 | &stopSearch, | 681 | &stopSearch, |
680 | NULL); | 682 | NULL); |
@@ -703,17 +705,15 @@ static void abortSearch(GtkTreeModel * model, | |||
703 | /** | 705 | /** |
704 | * The abort button in the search summary was clicked. | 706 | * The abort button in the search summary was clicked. |
705 | */ | 707 | */ |
706 | void on_abortSearchSummaryButton_clicked_fs(GtkWidget * treeview, | 708 | void on_abortSearchSummaryButton_clicked_fs(GtkWidget * closeButton, |
707 | GtkWidget * closeButton) { | 709 | GtkWidget * treeview) { |
708 | GtkTreeSelection * selection; | 710 | GtkTreeSelection * selection; |
709 | 711 | ||
710 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | 712 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); |
711 | gtk_tree_selection_selected_foreach | 713 | ggc_tree_selection_selected_foreach |
712 | (selection, | 714 | (selection, |
713 | &abortSearch, | 715 | &abortSearch, |
714 | NULL); | 716 | NULL); |
715 | } | 717 | } |
716 | 718 | ||
717 | |||
718 | |||
719 | /* end of search.c */ | 719 | /* end of search.c */ |