From 8399f70ea0764ff8ebc4928474c311b6327da802 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 28 Jan 2020 09:32:58 +0300 Subject: [PATCH] Only handle left button clicks. --- ui/abstract_button.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/abstract_button.cpp b/ui/abstract_button.cpp index 035e0fe..e9a37d0 100644 --- a/ui/abstract_button.cpp +++ b/ui/abstract_button.cpp @@ -91,8 +91,10 @@ void AbstractButton::clicked( Qt::MouseButton button) { _modifiers = modifiers; const auto weak = MakeWeak(this); - if (const auto callback = _clickedCallback) { - callback(); + if (button == Qt::LeftButton) { + if (const auto callback = _clickedCallback) { + callback(); + } } if (weak) { _clicks.fire_copy(button);