summaryrefslogtreecommitdiff
path: root/ui/qt/packet_dialog.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-08-22 22:59:42 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2015-08-24 07:43:22 +0000
commit7176958357cc1e993931463e40814d37083de260 (patch)
treeeff3e71a6125476134bcf4434fc5540247a74d64 /ui/qt/packet_dialog.h
parent25ec198dd4dd9f8cfcef56548501391d49b9fa40 (diff)
downloadwireshark-7176958357cc1e993931463e40814d37083de260.tar.gz
Close packet dialogs when reload Lua plugins.
We could keep the dialogs with the current content if postponing proto_free_deregistered_fields() until all dialogs are closed. This would give a feature where the user is able to compare packets before and after a reload. Or we could add functions in PacketDialog to reload the packet details in all open dialogs. This would give a feature to always have a updated dialog for all interesting packets. Change-Id: I805352b65844eafafafc54cd61f08b4605416e64 Reviewed-on: https://code.wireshark.org/review/10201 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/packet_dialog.h')
-rw-r--r--ui/qt/packet_dialog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/packet_dialog.h b/ui/qt/packet_dialog.h
index 4f4cde7885..8b35bc8c95 100644
--- a/ui/qt/packet_dialog.h
+++ b/ui/qt/packet_dialog.h
@@ -44,6 +44,7 @@ public:
signals:
void monospaceFontChanged(QFont);
+ void packetDialogClosed(QDialog *);
private slots:
void captureFileClosing();
@@ -52,6 +53,9 @@ private slots:
void on_buttonBox_helpRequested();
private:
+ void accept();
+ void reject();
+
Ui::PacketDialog *ui;
QString col_info_;