Qt: Actually ensure that rows are colorized

PacketListRecords should only report themselves as colorized when
colorized with the latest version of the coloring rules. Otherwise,
ensureRowColorized will not recolorize rows when the rules have changed.

This makes the minimap/intelligent scrollbar correctly update
colors in the background when the rules have changed. (Rows that
were being displayed were being updated, because the columnStrings
were invalidated at the same time, and when fetching the columnStrings
the colors would be updated if the rules had changed.)

Fix #17621
This commit is contained in:
John Thacker 2023-02-07 18:20:50 -05:00
parent 2d173ec34c
commit 66fc2d4ee3
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public:
frame_data *frameData() const { return fdata_; }
// packet_list->col_to_text in gtk/packet_list_store.c
static int textColumn(int column) { return cinfo_column_.value(column, -1); }
bool colorized() { return colorized_; }
bool colorized() { return colorized_ && (color_ver_ == rows_color_ver_); }
unsigned int conversation() { return conv_index_; }
int columnTextSize(const char *str);