Qt: Remove unnecessary processEvents() call

MainWindow::captureFileReadStarted() is called inside event handlers.
There isn't any actual processing after the captureFileReadStarted() is
called so in most cases the code will quickly return to the event loop.
In case of cf_read() callbacks, there is dedicated "slow processing"
detection implemented that eventually leads to processEvent() call in
update_progress_dlg().

Change-Id: Icfefa0ba7bf1bec43014e30756d0eec4078d389c
Reviewed-on: https://code.wireshark.org/review/36113
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Tomasz Moń 2020-02-15 19:22:35 +01:00 committed by Peter Wu
parent 7e02165453
commit d400dbe476
1 changed files with 0 additions and 2 deletions

View File

@ -751,8 +751,6 @@ void MainWindow::captureFileReadStarted(const QString &action) {
showCapture();
main_ui_->actionAnalyzeReloadLuaPlugins->setEnabled(false);
main_ui_->wirelessTimelineWidget->captureFileReadStarted(capture_file_.capFile());
WiresharkApplication::processEvents();
}
void MainWindow::captureFileReadFinished() {