From a6cf98332b209a89273844d9dbaf0eda1f0d60a3 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Fri, 7 Aug 2026 19:31:36 +1200 Subject: [PATCH] Fix fallthough in CodeView/MemoryView widgets This slightly changes the behaviour, but I think this is more correct. --- Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 2 ++ Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index c7a74ee29d..82d1473ee4 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -1174,7 +1174,9 @@ void CodeViewWidget::keyPressEvent(QKeyEvent* event) if (event->modifiers() == Qt::ControlModifier) { emit ActivateSearch(); + return; } + [[fallthrough]]; default: QWidget::keyPressEvent(event); break; diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index 67505f3ce4..09740fa6b5 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -126,7 +126,9 @@ public: if (event->modifiers() == Qt::ControlModifier) { m_view->TriggerActivateSearch(); + return; } + [[fallthrough]]; default: QWidget::keyPressEvent(event); return;