aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/filter_dialog.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-01-27 21:30:52 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-01-28 18:28:30 +0000
commit7fdf4ceaa6d5bacb69165adc2e7c7f56d696a685 (patch)
tree3630eead080917a673145e537a8960cf35e67dda /ui/qt/filter_dialog.cpp
parent265a41e14da6b3ebf1e49e726eee62d1372110bf (diff)
Qt: Update display filter bookmarks when list changed
Recreate the display filter bookmarks menu only when the list has changed, not every time the display filter changes. The list changes when removing an entry from the menu and when changing the list in the "Manage Display Filters" dialog. Save the list when removing an entry from the menu. Change-Id: Icd08e0a80085cca55c0e63177d45abe4902c7c3e Reviewed-on: https://code.wireshark.org/review/13567 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/filter_dialog.cpp')
-rw-r--r--ui/qt/filter_dialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/filter_dialog.cpp b/ui/qt/filter_dialog.cpp
index 30da83d569..519ab0fbc7 100644
--- a/ui/qt/filter_dialog.cpp
+++ b/ui/qt/filter_dialog.cpp
@@ -238,6 +238,10 @@ void FilterDialog::on_buttonBox_accepted()
QMessageBox::warning(this, warning_title, warning_msg, QMessageBox::Ok);
g_free(f_path);
}
+
+ if (filter_type_ == DisplayFilter) {
+ wsApp->emitAppSignal(WiresharkApplication::DisplayFilterListChanged);
+ }
}
void FilterDialog::on_buttonBox_helpRequested()