diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2015-12-11 09:34:08 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-12-20 08:21:02 +0000 |
commit | 9bb3f6be4c18822267a64633c298e1a8f1809221 (patch) | |
tree | de9b8934c58f239e29d0227039ad7f55f3d42f06 /ui/recent.c | |
parent | 7e0ec2c8eb3c88e70992dc40b130c76177b83a30 (diff) | |
download | wireshark-9bb3f6be4c18822267a64633c298e1a8f1809221.tar.gz |
Qt: Add missing multi-field column validation
GTK already has it, but Qt forgot about it, so multi-field custom column
works ok if previously saved in GTK-shark. Invalid validation prevent from
modifying and saving multi-field custom column in Qt version.
While at it, rename "custom field" to "custom fields" to ensure
we think about multi-field custom column.
Change-Id: I99588150ccb38be11b75f5dd5b0f6443e7055ebb
Reviewed-on: https://code.wireshark.org/review/12685
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/recent.c')
-rw-r--r-- | ui/recent.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/recent.c b/ui/recent.c index 54cafe6af8..ac5e204a54 100644 --- a/ui/recent.c +++ b/ui/recent.c @@ -1355,7 +1355,7 @@ recent_get_column_width(gint col) cfmt = get_column_format(col); if (cfmt == COL_CUSTOM) { - cfield = get_column_custom_field(col); + cfield = get_column_custom_fields(col); } col_l = g_list_first(recent.col_width_list); @@ -1383,7 +1383,7 @@ recent_set_column_width(gint col, gint width) cfmt = get_column_format(col); if (cfmt == COL_CUSTOM) { - cfield = get_column_custom_field(col); + cfield = get_column_custom_fields(col); } col_l = g_list_first(recent.col_width_list); @@ -1423,7 +1423,7 @@ recent_get_column_xalign(gint col) cfmt = get_column_format(col); if (cfmt == COL_CUSTOM) { - cfield = get_column_custom_field(col); + cfield = get_column_custom_fields(col); } col_l = g_list_first(recent.col_width_list); @@ -1451,7 +1451,7 @@ recent_set_column_xalign(gint col, gchar xalign) cfmt = get_column_format(col); if (cfmt == COL_CUSTOM) { - cfield = get_column_custom_field(col); + cfield = get_column_custom_fields(col); } col_l = g_list_first(recent.col_width_list); |