summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index ccbee03d2..aceee8605 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -2399,8 +2399,9 @@ COMMAND_CALLBACK(filter)
ptr_filter = gui_filter_search_by_name (argv[2]);
if (ptr_filter)
{
+ ptr_filter->enabled = 0; // disable before refilter
+ gui_filter_all_buffers (ptr_filter); // refilter before free
gui_filter_free (ptr_filter);
- gui_filter_all_buffers (ptr_filter);
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
_("Filter \"%s\" deleted"),
argv[2]);