aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/display_filter_edit.h
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/display_filter_edit.h
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/display_filter_edit.h')
-rw-r--r--ui/qt/display_filter_edit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/display_filter_edit.h b/ui/qt/display_filter_edit.h
index 4b30fbd1fc..c9ecb765f0 100644
--- a/ui/qt/display_filter_edit.h
+++ b/ui/qt/display_filter_edit.h
@@ -49,6 +49,7 @@ protected:
public slots:
bool checkFilter();
+ void updateBookmarkMenu();
void applyDisplayFilter();
void displayFilterSuccess(bool success);
@@ -66,6 +67,8 @@ private slots:
private:
DisplayFilterEditType type_;
QString placeholder_text_;
+ QAction *save_action_;
+ QAction *remove_action_;
StockIconToolButton *bookmark_button_;
StockIconToolButton *clear_button_;
StockIconToolButton *apply_button_;