Only handle left button clicks.

This commit is contained in:
John Preston 2020-01-28 09:32:58 +03:00
parent 0f0fd6a94f
commit 8399f70ea0

View file

@ -91,9 +91,11 @@ void AbstractButton::clicked(
Qt::MouseButton button) {
_modifiers = modifiers;
const auto weak = MakeWeak(this);
if (button == Qt::LeftButton) {
if (const auto callback = _clickedCallback) {
callback();
}
}
if (weak) {
_clicks.fire_copy(button);
}