diff options
author | Michael Mann <mmann78@netscape.net> | 2018-12-15 17:43:04 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2018-12-21 13:59:32 +0000 |
commit | ca1d13d4070929eff5f3490d755fc112e875fb8d (patch) | |
tree | 22fb2caeff2ee23dc96d881a9e000cd330f80048 /ui | |
parent | 68b2eb212935c3a132aec6d4a3a131368da5ef11 (diff) |
TimeShiftDialog should be considered an "edit" operation
When TimeShiftDialog is used, it should trigger the need to save the packet capture.
Ping-Bug: 14306
Change-Id: Ia0dfbefdabcb9d759b5ed2ce897637f9727d0768
Reviewed-on: https://code.wireshark.org/review/31057
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/main_window_slots.cpp | 3 | ||||
-rw-r--r-- | ui/time_shift.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 17071f86e0..9677028c42 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -2099,6 +2099,9 @@ void MainWindow::on_actionEditTimeShift_triggered() &ts_dialog, SLOT(setCaptureFile(capture_file*))); connect(&ts_dialog, SIGNAL(timeShifted()), packet_list_, SLOT(applyTimeShift())); ts_dialog.exec(); + if (capture_file_.capFile()->unsaved_changes) { + updateForUnsavedChanges(); + } } void MainWindow::on_actionEditPacketComment_triggered() diff --git a/ui/time_shift.c b/ui/time_shift.c index edd460a5d1..d2394dc54a 100644 --- a/ui/time_shift.c +++ b/ui/time_shift.c @@ -293,6 +293,7 @@ time_shift_all(capture_file *cf, const gchar *offset_text) continue; /* Shouldn't happen */ modify_time_perform(fd, neg ? SHIFT_NEG : SHIFT_POS, &offset, SHIFT_KEEPOFFSET); } + cf->unsaved_changes = TRUE; packet_list_queue_draw(); return NULL; @@ -338,6 +339,7 @@ time_shift_settime(capture_file *cf, guint packet_num, const gchar *time_text) modify_time_perform(fd, SHIFT_POS, &diff_time, SHIFT_SETTOZERO); } + cf->unsaved_changes = TRUE; packet_list_queue_draw(); return NULL; } @@ -421,6 +423,7 @@ time_shift_adjtime(capture_file *cf, guint packet1_num, const gchar *time1_text, modify_time_perform(fd, SHIFT_POS, &d3t, SHIFT_SETTOZERO); } + cf->unsaved_changes = TRUE; packet_list_queue_draw(); return NULL; } |