Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
ffca05522f
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue