forked from osmocom/wireshark
Qt: fix some menus activation when stopping a capture
Call MainWindow::setMenusForCaptureFile() once the capture is finished While we are at it, let's deactivate Export PDU and Export Packet Bytes menus while capturing Bug: 12071 Bug: 12898 Change-Id: I8ab9d531135790b51cd630d3f548d0c47a4a60a5 Reviewed-on: https://code.wireshark.org/review/17784 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: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
2de2ddd229
commit
d7a07deb19
|
@ -2072,8 +2072,8 @@ void MainWindow::setMenusForCaptureInProgress(bool capture_in_progress) {
|
|||
main_ui_->actionFileExportAsPSML->setEnabled(capture_in_progress);
|
||||
main_ui_->actionFileExportAsJSON->setEnabled(capture_in_progress);
|
||||
|
||||
main_ui_->actionFileExportPacketBytes->setEnabled(capture_in_progress);
|
||||
main_ui_->actionFileExportPDU->setEnabled(capture_in_progress);
|
||||
main_ui_->actionFileExportPacketBytes->setEnabled(!capture_in_progress);
|
||||
main_ui_->actionFileExportPDU->setEnabled(!capture_in_progress);
|
||||
main_ui_->actionFileExportSSLSessionKeys->setEnabled(capture_in_progress);
|
||||
|
||||
foreach (QAction *eo_action, main_ui_->menuFileExportObjects->actions()) {
|
||||
|
|
|
@ -623,6 +623,7 @@ void MainWindow::captureCaptureUpdateFinished(capture_session *) {
|
|||
/* Enable menu items that make sense if you're not currently running
|
||||
a capture. */
|
||||
setForCaptureInProgress(false);
|
||||
setMenusForCaptureFile();
|
||||
|
||||
setWindowIcon(wsApp->normalIcon());
|
||||
|
||||
|
@ -646,6 +647,7 @@ void MainWindow::captureCaptureFixedFinished(capture_session *) {
|
|||
/* Enable menu items that make sense if you're not currently running
|
||||
a capture. */
|
||||
setForCaptureInProgress(false);
|
||||
setMenusForCaptureFile();
|
||||
|
||||
setWindowIcon(wsApp->normalIcon());
|
||||
|
||||
|
|
Loading…
Reference in New Issue