diff options
author | Jirka Novak <j.novak@netsystem.cz> | 2021-01-10 21:57:47 +0100 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2021-01-11 13:30:18 +0000 |
commit | 8dd84917136e763c08be821cef360a225baa089e (patch) | |
tree | 13aac6c668e33c765369b6fe07e677a155b583f0 /ui/qt/bluetooth_hci_summary_dialog.cpp | |
parent | aad42108e0108b0cd195fa7d22dc34bb35dfac6f (diff) |
Qt framework: Dialogs are correctly notified when capture file was closed
The patch reintroduces WiresharkDialog::captureFileClosed() method and
calls captureFileClosing() and captureFileClosed() in right order.
Both methods call updateWidgets() at its end.
All dialogs were reviewed and captureFileClosing/Closed methods updated
when appropriate.
captureEvent() method in multiple dialogs changed to captureFileClosing/Closed
as it does same actions - looks like old style of detecting of capture
file closing.
Diffstat (limited to 'ui/qt/bluetooth_hci_summary_dialog.cpp')
-rw-r--r-- | ui/qt/bluetooth_hci_summary_dialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/qt/bluetooth_hci_summary_dialog.cpp b/ui/qt/bluetooth_hci_summary_dialog.cpp index be3e424156..0b64c3ee60 100644 --- a/ui/qt/bluetooth_hci_summary_dialog.cpp +++ b/ui/qt/bluetooth_hci_summary_dialog.cpp @@ -151,10 +151,16 @@ void BluetoothHciSummaryDialog::captureFileClosing() { remove_tap_listener(&tapinfo_); + WiresharkDialog::captureFileClosing(); +} + + +void BluetoothHciSummaryDialog::captureFileClosed() +{ ui->interfaceComboBox->setEnabled(FALSE); ui->adapterComboBox->setEnabled(FALSE); - WiresharkDialog::captureFileClosing(); + WiresharkDialog::captureFileClosed(); } |