summaryrefslogtreecommitdiff
path: root/ui/qt/conversation_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2014-08-02 19:31:33 -0700
committerGerald Combs <gerald@wireshark.org>2014-08-03 02:36:10 +0000
commitfb68a0c6aefc828101a13aeb598eee100baeef9f (patch)
tree122257b00ebd3e134f23fa687cda0a10dee14843 /ui/qt/conversation_dialog.cpp
parent363f1e567cf3a43426f00e35c8eaf06c0a1f5b81 (diff)
downloadwireshark-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.cpp6
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);
}
}