We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb799d commit 683c16fCopy full SHA for 683c16f
src/widgets/dslider.cpp
@@ -139,8 +139,8 @@ bool DSlider::eventFilter(QObject *watched, QEvent *e)
139
return !d->mouseWheelEnabled;
140
}
141
142
- if ((watched == d->slider) && (e->type() == QEvent::MouseButtonRelease)) {
143
- d->needFocus = true;
+ if (e->type() == QEvent::MouseButtonRelease) {
+ d->needFocus = watched == d->slider;
144
145
146
if (d->needFocus && (e->type() == QEvent::KeyPress)) {
0 commit comments