From 5e7cd2dfc6634fcdb005eef5ba3a7c3852b20a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 16 Apr 2018 08:53:54 +0200 Subject: Qt: Rename packet_list_enable_color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/main_window_slots.cpp | 2 +- ui/qt/packet_list.cpp | 2 +- ui/qt/wireshark_application.cpp | 1 - ui/ws_ui_util.h | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index b23d22c408..ceb1873ca6 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -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(); } diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index a1d1a9857d..f77215d248 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -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(); diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp index ad30ed10f8..cf76419736 100644 --- a/ui/qt/wireshark_application.cpp +++ b/ui/qt/wireshark_application.cpp @@ -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(); diff --git a/ui/ws_ui_util.h b/ui/ws_ui_util.h index 20cf4d3fe3..03a1415d6c 100644 --- a/ui/ws_ui_util.h +++ b/ui/ws_ui_util.h @@ -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); -- cgit v1.2.3