From efe95fa8fd79d4c087ce587143c000dd61218bc0 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 10 Nov 2016 16:51:41 +0100 Subject: [PATCH] Qt: populate Bookmarks menu in capture options dialog The bookmarks menu is populated for the main window when the appInitialized signal is emitted, this ensures that any preferences are applied. For the Capture Options dialog however, the appInitialized signal is never triggered since the GUI has already started. Just invoke it from the constructor such the menu is populated at least once. Bug: 12986 Change-Id: I04457fd25e52a25714ac471131b90e3a128515d8 Reviewed-on: https://code.wireshark.org/review/18734 Reviewed-by: Jaap Keuter Petri-Dish: Jaap Keuter Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/qt/capture_filter_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/qt/capture_filter_edit.cpp b/ui/qt/capture_filter_edit.cpp index 20f48ac0bd..4539e86f03 100644 --- a/ui/qt/capture_filter_edit.cpp +++ b/ui/qt/capture_filter_edit.cpp @@ -220,6 +220,7 @@ CaptureFilterEdit::CaptureFilterEdit(QWidget *parent, bool plain) : this, SLOT(setFilterSyntaxState(QString,int,QString))); connect(syntax_thread, SIGNAL(finished()), syntax_worker_, SLOT(deleteLater())); syntax_thread->start(); + updateBookmarkMenu(); } void CaptureFilterEdit::paintEvent(QPaintEvent *evt) {