diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-10-15 23:14:10 +0200 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-10-19 17:41:12 +0000 |
commit | a0113a5eb3329b815e1790f8dc42c48fa6ffbcd7 (patch) | |
tree | 98790347f65517d02597b14d6115ccd9d3f6c0e3 /ui/qt/time_shift_dialog.cpp | |
parent | 6f9801a6279f01ec004f1796bc2fd9d8f1110a99 (diff) | |
download | wireshark-a0113a5eb3329b815e1790f8dc42c48fa6ffbcd7.tar.gz |
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 <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/time_shift_dialog.cpp')
-rw-r--r-- | ui/qt/time_shift_dialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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(); } |