diff options
author | Gerald Combs <gerald@zing.org> | 2014-08-02 19:31:33 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-08-03 02:36:10 +0000 |
commit | fb68a0c6aefc828101a13aeb598eee100baeef9f (patch) | |
tree | 122257b00ebd3e134f23fa687cda0a10dee14843 /ui/qt/conversation_dialog.cpp | |
parent | 363f1e567cf3a43426f00e35c8eaf06c0a1f5b81 (diff) | |
download | wireshark-fb68a0c6aefc828101a13aeb598eee100baeef9f.tar.gz |
Have ConversationDialog retain data between captures.
Remove our tap listeners when the capture file closes. This lets us view
conversation data for multiple capture files.
Change-Id: Ifaa1d2c9d3cd10b1d282aa0070ee2edacc7ce3b0
Reviewed-on: https://code.wireshark.org/review/3376
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/conversation_dialog.cpp')
-rw-r--r-- | ui/qt/conversation_dialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/conversation_dialog.cpp b/ui/qt/conversation_dialog.cpp index b49f19763b..bb76c8793f 100644 --- a/ui/qt/conversation_dialog.cpp +++ b/ui/qt/conversation_dialog.cpp @@ -40,6 +40,7 @@ #include <QList> #include <QMap> #include <QMessageBox> +#include <QPushButton> #include <QTabWidget> #include <QTextStream> #include <QToolButton> @@ -179,7 +180,12 @@ void ConversationDialog::setCaptureFile(capture_file *cf) { if (!cf) { // We only want to know when the file closes. cap_file_ = NULL; + for (int i = 0; i < ui->conversationTabWidget->count(); i++) { + ConversationTreeWidget *cur_tree = qobject_cast<ConversationTreeWidget *>(ui->conversationTabWidget->widget(i)); + remove_tap_listener(cur_tree->conversationHash()); + } ui->displayFilterCheckBox->setEnabled(false); + ui->conversationTypePushButton->setEnabled(false); } } |