aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main_filter_toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/main_filter_toolbar.c')
-rw-r--r--ui/gtk/main_filter_toolbar.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/gtk/main_filter_toolbar.c b/ui/gtk/main_filter_toolbar.c
index 24b8c86..4ab9dc3 100644
--- a/ui/gtk/main_filter_toolbar.c
+++ b/ui/gtk/main_filter_toolbar.c
@@ -113,7 +113,7 @@ filter_save_cb(GtkWidget *w _U_, GtkWindow *parent_w)
}
static void
-plugin_if_filter_apply(gconstpointer user_data)
+plugin_if_filter_apply(GHashTable * dataSet)
{
/* code is derived from voip_calls_dlg.c::voip_calls_on_filter */
@@ -121,11 +121,8 @@ plugin_if_filter_apply(gconstpointer user_data)
size_t max_filter_length = 2048;
gchar *filter_string;
- if ( main_display_filter_widget != 0 )
+ if ( main_display_filter_widget != 0 && dataSet != 0 )
{
-
- GHashTable * dataSet = (GHashTable *) user_data;
-
if ( g_hash_table_lookup_extended(dataSet, "filter_string", NULL, NULL ) )
{
filter_string = g_strndup((const char *)g_hash_table_lookup(dataSet, "filter_string"), max_filter_length);