From a0113a5eb3329b815e1790f8dc42c48fa6ffbcd7 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 15 Oct 2015 23:14:10 +0200 Subject: Qt: fix time shift Add a timeShifted signal to TimeShiftDialog and use it to update the packet list and model. Add drawCurrentPacket to PacketList so that we can do a more thorough job of redrawing the current packet and tree. Bug: 11575 Change-Id: I960d8cdbf6872e3f71007cb4d2bbd5457f268257 Reviewed-on: https://code.wireshark.org/review/11068 Reviewed-by: Pascal Quantin Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/qt/time_shift_dialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ui/qt/time_shift_dialog.cpp') diff --git a/ui/qt/time_shift_dialog.cpp b/ui/qt/time_shift_dialog.cpp index bbfbf05a0c..4b168d1c27 100644 --- a/ui/qt/time_shift_dialog.cpp +++ b/ui/qt/time_shift_dialog.cpp @@ -262,7 +262,13 @@ void TimeShiftDialog::applyTimeShift() } else if (ts_ui_->unshiftAllButton->isChecked()) { err_str = time_shift_undo(cap_file_); } - if (err_str) syntax_err_ = err_str; + + if (err_str) { + syntax_err_ = err_str; + } else { + emit timeShifted(); + } + enableWidgets(); } -- cgit v1.2.1