aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-20 13:07:26 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-20 20:09:12 +0000
commit7e13cacb9b589662a1f748c362a70e753ae4a9db (patch)
tree27bec38ff70e3323b40541cf616d811d504bb4ea /ui
parent63edb9904fafb21ead6b69a712a6726159319d22 (diff)
Try to minimize sorting overhead.
Process application events as little as possible while sorting. Change-Id: I9d779aebf6edaafc1e6af3a99b4a0dac682ea6b6 Reviewed-on: https://code.wireshark.org/review/9722 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/packet_list_model.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/packet_list_model.cpp b/ui/qt/packet_list_model.cpp
index 59274bab92..79fe759e6f 100644
--- a/ui/qt/packet_list_model.cpp
+++ b/ui/qt/packet_list_model.cpp
@@ -289,9 +289,11 @@ bool PacketListModel::recordLessThan(PacketListRecord *r1, PacketListRecord *r2)
// _packet_list_compare_records, and packet_list_compare_custom from
// gtk/packet_list_store.c into one function
+ // What's the least amount of processing that we can do which will draw
+ // the busy indicator?
if (busy_timer_.elapsed() > busy_timeout_) {
busy_timer_.restart();
- wsApp->processEvents();
+ wsApp->processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 1);
}
if (sort_column_ < 0) {
// No column.