Only handle left button clicks.
This commit is contained in:
parent
0f0fd6a94f
commit
8399f70ea0
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue