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:
parent
5a365506f7
commit
e0853095e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user