diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /ui/qt/strip_headers_dialog.cpp | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/strip_headers_dialog.cpp')
-rw-r--r-- | ui/qt/strip_headers_dialog.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/qt/strip_headers_dialog.cpp b/ui/qt/strip_headers_dialog.cpp index 73775ddf..35f6fa13 100644 --- a/ui/qt/strip_headers_dialog.cpp +++ b/ui/qt/strip_headers_dialog.cpp @@ -20,6 +20,8 @@ #include "ui/export_pdu_ui_utils.h" #include "ui/capture_globals.h" +#include "main_application.h" + StripHeadersDialog::StripHeadersDialog(QWidget *parent) : QDialog(parent), ui(new Ui::StripHeadersDialog) @@ -28,12 +30,15 @@ StripHeadersDialog::StripHeadersDialog(QWidget *parent) : ui->setupUi(this); + setWindowTitle(mainApp->windowTitleString(tr("Strip Headers"))); + for (tap_name_list = get_export_pdu_tap_list(); tap_name_list; tap_name_list = g_slist_next(tap_name_list)) { if (export_pdu_tap_get_encap((const char*)tap_name_list->data) != WTAP_ENCAP_WIRESHARK_UPPER_PDU) { ui->comboBox->addItem((const char*)(tap_name_list->data)); } } } + void StripHeadersDialog::on_buttonBox_accepted() { const QByteArray& filter = ui->displayFilterLineEdit->text().toUtf8(); @@ -41,6 +46,12 @@ void StripHeadersDialog::on_buttonBox_accepted() do_export_pdu(filter.constData(), global_capture_opts.temp_dir, tap_name.constData()); } + +void StripHeadersDialog::on_buttonBox_helpRequested() +{ + mainApp->helpTopicAction(HELP_STRIP_HEADERS_DIALOG); +} + StripHeadersDialog::~StripHeadersDialog() { delete ui; |