diff options
author | Tomasz Moń <desowin@gmail.com> | 2022-07-03 13:35:48 +0200 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2022-07-03 13:41:30 +0200 |
commit | d1f7aa5acb2391a59111d5073e9bd9258a2154b6 (patch) | |
tree | a9ff326af13247209dcf1c4c947bec114f2d262e /ui/qt/bluetooth_hci_summary_dialog.cpp | |
parent | 8d93f0920ad566d58597490b36294894290aaf7a (diff) |
Qt: Do not spin new event loop on menu show
There is no need for nesting event loops when showing menus. Show menus
asynchronously to limit possibilities of hard to debug problems related
to re-entering event loop.
Diffstat (limited to 'ui/qt/bluetooth_hci_summary_dialog.cpp')
-rw-r--r-- | ui/qt/bluetooth_hci_summary_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/bluetooth_hci_summary_dialog.cpp b/ui/qt/bluetooth_hci_summary_dialog.cpp index dad1b992c8..15d2df5e07 100644 --- a/ui/qt/bluetooth_hci_summary_dialog.cpp +++ b/ui/qt/bluetooth_hci_summary_dialog.cpp @@ -194,7 +194,7 @@ void BluetoothHciSummaryDialog::keyPressEvent(QKeyEvent *event) void BluetoothHciSummaryDialog::tableContextMenu(const QPoint &pos) { - context_menu_.exec(ui->tableTreeWidget->viewport()->mapToGlobal(pos)); + context_menu_.popup(ui->tableTreeWidget->viewport()->mapToGlobal(pos)); } void BluetoothHciSummaryDialog::tableItemExpanded(QTreeWidgetItem *) |