diff options
author | Michael Mann <mmann78@netscape.net> | 2017-12-26 19:42:08 -0500 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2017-12-27 08:08:10 +0000 |
commit | 777acc73daaaca7bfe040354a6bacbc905329e45 (patch) | |
tree | 42cea75de11b7bfead5bb60fe2edb8acaf2912d9 /ui/qt/expert_info_dialog.cpp | |
parent | cb7eef8ff8a33ff2513e2e28a63922003e0cf9c3 (diff) |
Apply new CaptureEvents to statistics dialogs.
Refactoring from If366d42b07dc822636404ac44ba2306ec4418b4e ignored
dialogs outside of the main window. Searched for removed signals
from CaptureFile class and applied new CaptureEvent handling.
Change-Id: I9e0aaa0dc1c702ce04810d27c8f9273997f7ca30
Reviewed-on: https://code.wireshark.org/review/25007
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/expert_info_dialog.cpp')
-rw-r--r-- | ui/qt/expert_info_dialog.cpp | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/ui/qt/expert_info_dialog.cpp b/ui/qt/expert_info_dialog.cpp index 863892d709..eaf7cb7370 100644 --- a/ui/qt/expert_info_dialog.cpp +++ b/ui/qt/expert_info_dialog.cpp @@ -115,11 +115,8 @@ ExpertInfoDialog::ExpertInfoDialog(QWidget &parent, CaptureFile &capture_file) : ctx_menu_.addAction(expand); connect(expand, SIGNAL(triggered()), this, SLOT(expandTree())); - - connect(&cap_file_, SIGNAL(captureFileRetapStarted()), - this, SLOT(retapStarted())); - connect(&cap_file_, SIGNAL(captureFileRetapFinished()), - this, SLOT(retapFinished())); + connect(&cap_file_, SIGNAL(captureEvent(CaptureEvent *)), + this, SLOT(captureEvent(CaptureEvent *))); setDisplayFilter(); QTimer::singleShot(0, this, SLOT(retapPackets())); } @@ -167,15 +164,23 @@ void ExpertInfoDialog::retapPackets() cap_file_.retapPackets(); } -void ExpertInfoDialog::retapStarted() -{ - ui->limitCheckBox->setEnabled(false); - ui->groupBySummaryCheckBox->setEnabled(false); -} - -void ExpertInfoDialog::retapFinished() +void ExpertInfoDialog::captureEvent(CaptureEvent *e) { - updateWidgets(); + if (e->captureContext() == CaptureEvent::Retap) + { + switch (e->eventType()) + { + case CaptureEvent::Started: + ui->limitCheckBox->setEnabled(false); + ui->groupBySummaryCheckBox->setEnabled(false); + break; + case CaptureEvent::Finished: + updateWidgets(); + break; + default: + break; + } + } } void ExpertInfoDialog::updateWidgets() |