From: Peter de Ridder Date: Sat, 7 Aug 2010 13:20:09 +0000 (+0200) Subject: Decrement n after clearing individual transfer items X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05065e521d4db5bcef4da221d9027497a14d1ca4;p=midori Decrement n after clearing individual transfer items --- diff --git a/panels/midori-transfers.c b/panels/midori-transfers.c index 8292010e..d8ccaf1c 100644 --- a/panels/midori-transfers.c +++ b/panels/midori-transfers.c @@ -112,7 +112,10 @@ midori_transfers_button_clear_clicked_cb (GtkToolItem* toolitem, status = webkit_download_get_status (download); if (status == WEBKIT_DOWNLOAD_STATUS_FINISHED || status == WEBKIT_DOWNLOAD_STATUS_CANCELLED) + { gtk_list_store_remove (GTK_LIST_STORE (model), &iter); + n--; /* Decrement n since we just removed it */ + } g_object_unref (download); #endif }