summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-05 18:28:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-05 18:28:51 +0200
commit420748abc9b5cd13b4f0d98068619e90d503450d (patch)
treeae1389ba76c9509fa0f63d2e598ca3e7ccf3660c
parent9e63b4ecafcb66c275760cd28d2cfb0d258a474e (diff)
spline-widget: oops, fix tooltip before clicking on widget
-rw-r--r--spline-widget/spline-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp
index ed07419e..0dc94555 100644
--- a/spline-widget/spline-widget.cpp
+++ b/spline-widget/spline-widget.cpp
@@ -347,7 +347,7 @@ void spline_widget::mousePressEvent(QMouseEvent *e)
void spline_widget::mouseMoveEvent(QMouseEvent *e)
{
- if (!_config || !isEnabled() || !hasFocus() || !isActiveWindow())
+ if (!_config || !isEnabled() || !isActiveWindow() || (moving_control_point_idx != -1 && !hasFocus()))
{
clearFocus();
return;