diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-04-22 18:31:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-04-23 01:35:22 +0000 |
commit | 948342a487999fcf24913c4a76983c3c6d4df1d9 (patch) | |
tree | f5d0a8be115ac03088c45248b2a8ac360dd8a819 /ui/qt/traffic_table_dialog.cpp | |
parent | 3db13c7bbbc2b8dfd864ffe7278c0f8f5491bfc7 (diff) | |
download | wireshark-948342a487999fcf24913c4a76983c3c6d4df1d9.tar.gz |
Forcibly update all items if name resolution is turned on or off.
This makes the display change if you turn the name resolution checkbox
on or off.
Change-Id: I873832b103b61e1e566523a1ae1c4211937c7bae
Reviewed-on: https://code.wireshark.org/review/15063
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/traffic_table_dialog.cpp')
-rw-r--r-- | ui/qt/traffic_table_dialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/qt/traffic_table_dialog.cpp b/ui/qt/traffic_table_dialog.cpp index 6ab248b32e..727f9ca5cd 100644 --- a/ui/qt/traffic_table_dialog.cpp +++ b/ui/qt/traffic_table_dialog.cpp @@ -303,7 +303,7 @@ TrafficTableTreeWidget::TrafficTableTreeWidget(QWidget *parent, register_ct_t *t setRootIsDecorated(false); sortByColumn(0, Qt::AscendingOrder); - connect(wsApp, SIGNAL(addressResolutionChanged()), this, SLOT(updateItems())); + connect(wsApp, SIGNAL(addressResolutionChanged()), this, SLOT(updateItemsForSettingChange())); } TrafficTableTreeWidget::~TrafficTableTreeWidget() @@ -339,7 +339,7 @@ void TrafficTableTreeWidget::setNameResolutionEnabled(bool enable) { if (resolve_names_ != enable) { resolve_names_ = enable; - updateItems(); + updateItems(true); } } @@ -352,6 +352,12 @@ void TrafficTableTreeWidget::contextMenuEvent(QContextMenuEvent *event) } ctx_menu_.exec(event->globalPos()); + +} + +void TrafficTableTreeWidget::updateItemsForSettingChange() +{ + updateItems(true); } /* |