Qt: Rename packet_list_enable_color
Rename packet_list_enable_color() to packet_list_recolor_packets() to reflect what it does. Remove the call from where it's not needed. Change-Id: I55dd1a9af8f5b1dbd83b06136a5bbcfddea06cdb Reviewed-on: https://code.wireshark.org/review/26959 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
129d574d96
commit
5e7cd2dfc6
|
@ -2554,7 +2554,7 @@ void MainWindow::on_actionViewNormalSize_triggered()
|
|||
|
||||
void MainWindow::on_actionViewColorizePacketList_triggered(bool checked) {
|
||||
recent.packet_list_colorize = checked;
|
||||
packet_list_enable_color(checked);
|
||||
packet_list_recolor_packets();
|
||||
packet_list_->packetListModel()->resetColorized();
|
||||
}
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ packet_list_clear(void)
|
|||
}
|
||||
|
||||
void
|
||||
packet_list_enable_color(gboolean)
|
||||
packet_list_recolor_packets(void)
|
||||
{
|
||||
if (gbl_cur_packet_list) {
|
||||
gbl_cur_packet_list->recolorPackets();
|
||||
|
|
|
@ -423,7 +423,6 @@ void WiresharkApplication::setConfigurationProfile(const gchar *profile_name, bo
|
|||
timestamp_set_type(recent.gui_time_format);
|
||||
timestamp_set_precision(recent.gui_time_precision);
|
||||
timestamp_set_seconds_type (recent.gui_seconds_format);
|
||||
packet_list_enable_color(recent.packet_list_colorize);
|
||||
tap_update_timer_.setInterval(prefs.tap_update_interval);
|
||||
|
||||
prefs_to_capture_opts();
|
||||
|
|
|
@ -64,7 +64,7 @@ void packet_list_prev(void);
|
|||
guint packet_list_append(column_info *cinfo, frame_data *fdata);
|
||||
frame_data *packet_list_get_row_data(gint row);
|
||||
void packet_list_set_selected_row(gint row);
|
||||
void packet_list_enable_color(gboolean enable);
|
||||
void packet_list_recolor_packets(void);
|
||||
void packet_list_queue_draw(void);
|
||||
void packet_list_select_first_row(void);
|
||||
void packet_list_moveto_end(void);
|
||||
|
|
|
@ -821,8 +821,6 @@ int main(int argc, char *qt_argv[])
|
|||
/* For update of WindowTitle (When use gui.window_title preference) */
|
||||
main_w->setWSWindowTitle();
|
||||
|
||||
packet_list_enable_color(recent.packet_list_colorize);
|
||||
|
||||
if (!color_filters_init(&err_msg, color_filter_add_cb)) {
|
||||
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_msg);
|
||||
g_free(err_msg);
|
||||
|
|
Loading…
Reference in New Issue