aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r--src/plugins/fs/search.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index 9de0a2cc..b4697500 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -435,6 +435,13 @@ void displaySearchResult(const ECRS_FileInfo * info,
435 BREAK(); 435 BREAK();
436} 436}
437 437
438static void * stopSearch(void * u) {
439 struct ECRS_URI * uri = u;
440 FSUI_stopSearch(ctx,
441 uri);
442 return NULL;
443}
444
438void on_closeSearchButton_clicked(GtkWidget * searchPage, 445void on_closeSearchButton_clicked(GtkWidget * searchPage,
439 GtkWidget * closeButton) { 446 GtkWidget * closeButton) {
440 GtkWidget * notebook; 447 GtkWidget * notebook;
@@ -459,8 +466,9 @@ void on_closeSearchButton_clicked(GtkWidget * searchPage,
459 return; 466 return;
460 467
461 uri = list->uri; 468 uri = list->uri;
462 FSUI_stopSearch(ctx, 469
463 uri); 470 run_with_save_calls(&stopSearch,
471 uri);
464 if (prev == NULL) 472 if (prev == NULL)
465 head = list->next; 473 head = list->next;
466 else 474 else