aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-06-10 19:15:07 +0000
committerChristian Grothoff <christian@grothoff.org>2008-06-10 19:15:07 +0000
commitf1d3d96cc92953eeb6fd7f4821844bdf18eef984 (patch)
tree30ecd63e81212182bc49306219336accbf4a5b00
parent8b8ec628afa5b73a121bad65caac84d1dbc317db (diff)
downloadgnunet-gtk-f1d3d96cc92953eeb6fd7f4821844bdf18eef984.tar.gz
gnunet-gtk-f1d3d96cc92953eeb6fd7f4821844bdf18eef984.zip
fixes
-rw-r--r--src/plugins/fs/download.c3
-rw-r--r--src/plugins/fs/search.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index 953c59c6..8d2e0b20 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -427,7 +427,6 @@ void
427fs_download_stopped (DownloadList * list) 427fs_download_stopped (DownloadList * list)
428{ 428{
429 GtkTreeIter iter; 429 GtkTreeIter iter;
430 GtkTreeIter piter;
431 GtkTreePath *path; 430 GtkTreePath *path;
432 DownloadList *prev; 431 DownloadList *prev;
433 GtkTreeModel *model; 432 GtkTreeModel *model;
@@ -460,7 +459,7 @@ fs_download_stopped (DownloadList * list)
460 else 459 else
461 { 460 {
462 model = GTK_TREE_MODEL (list->searchList->tree); 461 model = GTK_TREE_MODEL (list->searchList->tree);
463 gtk_tree_model_get_iter (model, &piter, path); 462 gtk_tree_model_get_iter (model, &iter, path);
464 gtk_tree_path_free (path); 463 gtk_tree_path_free (path);
465 gtk_tree_store_set (list->searchList->tree, 464 gtk_tree_store_set (list->searchList->tree,
466 &iter, 465 &iter,
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index ab78d844..ce3c5bcf 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -955,6 +955,7 @@ fs_search_restarted (SearchList * list)
955void 955void
956fs_search_stopped (SearchList * list) 956fs_search_stopped (SearchList * list)
957{ 957{
958 GtkTreeIter iter;
958 GtkNotebook *notebook; 959 GtkNotebook *notebook;
959 SearchList *prev; 960 SearchList *prev;
960 DownloadList *downloads; 961 DownloadList *downloads;
@@ -998,6 +999,8 @@ fs_search_stopped (SearchList * list)
998 index = i; 999 index = i;
999 GNUNET_GE_BREAK (ectx, index != -1); 1000 GNUNET_GE_BREAK (ectx, index != -1);
1000 gtk_notebook_remove_page (notebook, index); 1001 gtk_notebook_remove_page (notebook, index);
1002 if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (list->tree), &iter))
1003 freeIterSubtree (GTK_TREE_MODEL (list->tree), &iter);
1001 /* free list state itself */ 1004 /* free list state itself */
1002 UNREF (list->searchXML); 1005 UNREF (list->searchXML);
1003 UNREF (list->labelXML); 1006 UNREF (list->labelXML);