1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Fixup debugger_frame double events

This commit is contained in:
Elad Ashkenazi 2023-05-30 11:30:44 +03:00 committed by Megamouse
parent 5a365506f7
commit e0853095e3

View File

@ -267,6 +267,17 @@ void debugger_list::scroll(s32 steps)
void debugger_list::keyPressEvent(QKeyEvent* event)
{
// Always accept event (so it would not bubble upwards, debugger_frame already sees it)
struct accept_event_t
{
QKeyEvent* event;
~accept_event_t() noexcept
{
event->accept();
}
} accept_event{event};
if (!isActiveWindow())
{
QListWidget::keyPressEvent(event);