Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Eric Kotato 2020-01-28 22:04:19 +03:00
commit ffca05522f

View file

@ -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);