aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/supported_protocols_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-10-05 09:38:51 -0700
committerGerald Combs <gerald@wireshark.org>2015-10-05 23:13:36 +0000
commit289ee5a9d5ba0fabbe98e2ee08d2efab89d83188 (patch)
treec836dccc79dc9d722d7d539cd06cf953e03ff327 /ui/qt/supported_protocols_dialog.cpp
parentfd603f6f99c3ad3527616a1491804953a2a591c0 (diff)
Show progress in the Supported Protocols dialog.
Make sure we update the UI when building our tree. Change-Id: I8b24e5c017c9521a00e3dfcb48afe0e6b6124aa2 Reviewed-on: https://code.wireshark.org/review/10806 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/supported_protocols_dialog.cpp')
-rw-r--r--ui/qt/supported_protocols_dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/supported_protocols_dialog.cpp b/ui/qt/supported_protocols_dialog.cpp
index 0a1930794d..f3afe96dc6 100644
--- a/ui/qt/supported_protocols_dialog.cpp
+++ b/ui/qt/supported_protocols_dialog.cpp
@@ -68,6 +68,7 @@ void SupportedProtocolsDialog::updateStatistics()
.arg(locale.toString(ui->protoTreeWidget->topLevelItemCount()))
.arg(locale.toString(field_count_));
ui->hintLabel->setText(hint);
+ wsApp->processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 1);
}
void SupportedProtocolsDialog::fillTree()
@@ -107,7 +108,7 @@ void SupportedProtocolsDialog::fillTree()
field_list << field_ti;
field_count_++;
- if (field_count_ % 1000 == 0) updateStatistics();
+ if (field_count_ % 10000 == 0) updateStatistics();
}
std::sort(field_list.begin(), field_list.end());
proto_ti->addChildren(field_list);