summaryrefslogtreecommitdiff
path: root/ui/qt/bluetooth_att_server_attributes_dialog.cpp
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-09-22 10:30:42 +0200
committerAnders Broman <a.broman58@gmail.com>2015-10-15 03:45:45 +0000
commitcd5706cb56b30b3c38f2a986732b0bd0f9d47ce8 (patch)
tree2e1b2eb3abff88fe60d974e0150b8c91c27f9297 /ui/qt/bluetooth_att_server_attributes_dialog.cpp
parent1479d6d48ca393d8ae6cf33ea97f830572ac26e4 (diff)
downloadwireshark-cd5706cb56b30b3c38f2a986732b0bd0f9d47ce8.tar.gz
Qt/Bluetooth: Disable go to packet for closed files
Go to packet on close files is not valid (for currently open one). Disable it. Change-Id: Ib7b65c9ea7e94857692c8ac5ddd3971c52ac717f Reviewed-on: https://code.wireshark.org/review/11023 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/bluetooth_att_server_attributes_dialog.cpp')
-rw-r--r--ui/qt/bluetooth_att_server_attributes_dialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/bluetooth_att_server_attributes_dialog.cpp b/ui/qt/bluetooth_att_server_attributes_dialog.cpp
index 4ce9b8cc49..78312b5ef2 100644
--- a/ui/qt/bluetooth_att_server_attributes_dialog.cpp
+++ b/ui/qt/bluetooth_att_server_attributes_dialog.cpp
@@ -222,6 +222,9 @@ gboolean BluetoothAttServerAttributesDialog::tapPacket(void *tapinfo_ptr, packet
QString uuid_name;
gchar *addr = NULL;
+ if (dialog->file_closed_)
+ return FALSE;
+
if (pinfo->phdr->presence_flags & WTAP_HAS_INTERFACE_ID) {
gchar *interface;
const char *interface_name;
@@ -302,7 +305,7 @@ void BluetoothAttServerAttributesDialog::removeDuplicatesStateChanged(int)
void BluetoothAttServerAttributesDialog::on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int)
{
- if (!cap_file_.isValid())
+ if (file_closed_)
return;
guint32 frame_number = item->data(0, Qt::UserRole).value<guint32>();