diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-20 13:44:27 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-02-20 23:16:54 +0000 |
commit | ead79e6aa15210cf83032698d7d17eb54a3d0857 (patch) | |
tree | 99484c25885f5c277f8cb4b2a54d7fac2534b51a /ui/gtk/main.c | |
parent | 422ad100aad4c076ab05f1373dad59481ea12072 (diff) |
Clear the filter expression list in prefs.c.
Move filter_expression_nuke from ui/gtk to epan and rename it to
filter_expression_free. Call it in prefs_reset along with the other
preference reset routines.
This keeps the Qt filter toolbar from filling up with duplicate
expressions when the profile changes.
Change-Id: I9fae9a7b48944079ea342a126979d9e79af0d22b
Reviewed-on: https://code.wireshark.org/review/7281
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r-- | ui/gtk/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c index bfdee9669a..a931741104 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -3798,7 +3798,6 @@ void change_configuration_profile (const gchar *profile_name) /* Set profile name and update the status bar */ set_profile_name (profile_name); profile_bar_update (); - filter_expression_reinit(FILTER_EXPRESSION_REINIT_DESTROY); /* Reset current preferences and apply the new */ prefs_reset(); |