aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-05-19 10:01:20 +0200
committerMichal Labedzki <michal.labedzki@tieto.com>2015-06-12 08:49:34 +0000
commit3966e51de8f44c492bafe11d789f7e45dc34ef60 (patch)
tree0b62004a4af14e35839234f86da1e0079bd10bd0 /ui
parenta2207613b7c1818af960afc32d5c62c104792f01 (diff)
Qt/Bluetooth/ATT: Fix behaviour when capture file is closed
Disable go to frame and control components when capture is closed. You can only browse data and copy them. Change-Id: I05aee5eae5f91f39ab3bb942afdf9000d9b86add Reviewed-on: https://code.wireshark.org/review/8899 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/bluetooth_att_server_attributes_dialog.cpp7
-rw-r--r--ui/qt/bluetooth_att_server_attributes_dialog.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/ui/qt/bluetooth_att_server_attributes_dialog.cpp b/ui/qt/bluetooth_att_server_attributes_dialog.cpp
index 86950c7277..69fecc2c3a 100644
--- a/ui/qt/bluetooth_att_server_attributes_dialog.cpp
+++ b/ui/qt/bluetooth_att_server_attributes_dialog.cpp
@@ -159,6 +159,10 @@ void BluetoothAttServerAttributesDialog::captureFileClosing()
{
remove_tap_listener(&tapinfo_);
+ ui->interfaceComboBox->setEnabled(FALSE);
+ ui->deviceComboBox->setEnabled(FALSE);
+ ui->removeDuplicatesCheckBox->setEnabled(FALSE);
+
WiresharkDialog::captureFileClosing();
}
@@ -317,6 +321,9 @@ void BluetoothAttServerAttributesDialog::removeDuplicatesStateChanged(int)
void BluetoothAttServerAttributesDialog::on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int)
{
+ if (!cap_file_.isValid())
+ return;
+
guint32 frame_number = item->data(0, Qt::UserRole).value<guint32>();
emit goToPacket(frame_number);
diff --git a/ui/qt/bluetooth_att_server_attributes_dialog.h b/ui/qt/bluetooth_att_server_attributes_dialog.h
index 99ddf08a52..10e0909f45 100644
--- a/ui/qt/bluetooth_att_server_attributes_dialog.h
+++ b/ui/qt/bluetooth_att_server_attributes_dialog.h
@@ -77,7 +77,7 @@ private:
static void tapReset(void *tapinfo_ptr);
static gboolean tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data);
- void copyAll();
+ void copyAll();
private slots:
void captureFileClosing();