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; }