Decrement n after clearing individual transfer items

This commit is contained in:
Peter de Ridder 2010-08-07 15:20:09 +02:00 committed by Christian Dywan
parent 13ffa17f2b
commit 05065e521d

View file

@ -112,7 +112,10 @@ midori_transfers_button_clear_clicked_cb (GtkToolItem* toolitem,
status = webkit_download_get_status (download); status = webkit_download_get_status (download);
if (status == WEBKIT_DOWNLOAD_STATUS_FINISHED if (status == WEBKIT_DOWNLOAD_STATUS_FINISHED
|| status == WEBKIT_DOWNLOAD_STATUS_CANCELLED) || status == WEBKIT_DOWNLOAD_STATUS_CANCELLED)
{
gtk_list_store_remove (GTK_LIST_STORE (model), &iter); gtk_list_store_remove (GTK_LIST_STORE (model), &iter);
n--; /* Decrement n since we just removed it */
}
g_object_unref (download); g_object_unref (download);
#endif #endif
} }