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>
#include <QList>
#include <QMap>
#include <QMessageBox>
+#include <QPushButton>
#include <QTabWidget>
#include <QTextStream>
#include <QToolButton>
{
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);
}
}