From fee348d14789c1b42c75329b86e29ba8b5b6536e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 3 Nov 2022 12:49:27 +0100 Subject: [PATCH] buttonrebindsfilter: Add bracesbuttonrebindsfilter: Add braces --- src/plugins/buttonrebinds/buttonrebindsfilter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/buttonrebinds/buttonrebindsfilter.cpp b/src/plugins/buttonrebinds/buttonrebindsfilter.cpp index 6ff032990f..f09a9aaea2 100644 --- a/src/plugins/buttonrebinds/buttonrebindsfilter.cpp +++ b/src/plugins/buttonrebinds/buttonrebindsfilter.cpp @@ -262,12 +262,13 @@ bool ButtonRebindsFilter::send(TriggerType type, const Trigger &trigger, bool pr } const auto &action = typeActions[trigger]; - if (const QKeySequence *seq = std::get_if(&action)) + if (const QKeySequence *seq = std::get_if(&action)) { return sendKeySequence(*seq, pressed, timestamp); - else if (const auto mb = std::get_if(&action)) + } else if (const auto mb = std::get_if(&action)) { return sendMouseButton(mb->button, pressed, timestamp); - else if (const auto tb = std::get_if(&action)) + } else if (const auto tb = std::get_if(&action)) { return sendTabletToolButton(tb->button, pressed, timestamp); + } return false; }