Automatically reset the filter after deleting all matching cookies

Also fix wording in the confirmation dialog.
This commit is contained in:
Enrico Tröger 2009-05-03 10:14:55 +02:00 committed by Christian Dywan
parent 9d472f4054
commit dfef979499

View file

@ -474,6 +474,8 @@ static void cm_delete_all_cookies_real(CMData *cmdata)
}
gtk_tree_path_free(path_first);
/* now that we deleted all matching cookies, we reset the filter */
gtk_entry_set_text(GTK_ENTRY(cmdata->filter_entry), "");
cm_set_button_sensitiveness(cmdata, FALSE);
}
@ -499,7 +501,7 @@ static void cm_button_delete_all_clicked_cb(GtkToolButton *button, CMData *cmdat
if (*filter_text != '\0')
{
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
_("Only the visible cookies are deleted which match the entered filter string."));
_("Only cookies which match the filter will be deleted."));
}
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES)