summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/qt/main_window_slots.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index a12649910f..12f52cf586 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -2177,13 +2177,14 @@ void MainWindow::setTimestampFormat(QAction *action)
if (recent.gui_time_format != tsf) {
timestamp_set_type(tsf);
recent.gui_time_format = tsf;
+
+ if (packet_list_) {
+ packet_list_->resetColumns();
+ }
if (capture_file_.capFile()) {
/* This call adjusts column width */
cf_timestamp_auto_precision(capture_file_.capFile());
}
- if (packet_list_) {
- packet_list_->resetColumns();
- }
}
}
@@ -2199,13 +2200,14 @@ void MainWindow::setTimestampPrecision(QAction *action)
/* the actual precision will be set in packet_list_queue_draw() below */
timestamp_set_precision(tsp);
recent.gui_time_precision = tsp;
+
+ if (packet_list_) {
+ packet_list_->resetColumns();
+ }
if (capture_file_.capFile()) {
/* This call adjusts column width */
cf_timestamp_auto_precision(capture_file_.capFile());
}
- if (packet_list_) {
- packet_list_->resetColumns();
- }
}
}
@@ -2218,13 +2220,13 @@ void MainWindow::on_actionViewTimeDisplaySecondsWithHoursAndMinutes_triggered(bo
}
timestamp_set_seconds_type(recent.gui_seconds_format);
+ if (packet_list_) {
+ packet_list_->resetColumns();
+ }
if (capture_file_.capFile()) {
/* This call adjusts column width */
cf_timestamp_auto_precision(capture_file_.capFile());
}
- if (packet_list_) {
- packet_list_->resetColumns();
- }
}
void MainWindow::on_actionViewEditResolvedName_triggered()