diff --git a/private/internaltoolbox.cpp b/private/internaltoolbox.cpp index 3055f0f39..35666bee7 100644 --- a/private/internaltoolbox.cpp +++ b/private/internaltoolbox.cpp @@ -409,6 +409,12 @@ InternalToolBox::Corner InternalToolBox::corner() const void InternalToolBox::setViewTransform(const QTransform &transform) { + if (d->viewTransform == transform) { + return; + } + + d->viewTransform = transform; + if (transform.isScaling()) { d->toolbar = true; showToolBox(); @@ -418,7 +424,6 @@ void InternalToolBox::setViewTransform(const QTransform &transform) hideToolBox(); } } - d->viewTransform = transform; } void InternalToolBox::save(KConfigGroup &cg) const