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>
This commit is contained in:
parent
68b2eb2129
commit
ca1d13d407
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue