From 86e86a62bf311aec2e2f65f9dd6679038fb74794 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Wed, 24 Aug 2011 08:38:27 +0200 Subject: Always stop animation before starting a new one Task-number: QTSIM-207 Reviewed-by: owolff --- src/other/deviceitem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/other/deviceitem.cpp b/src/other/deviceitem.cpp index 5a4ca90..9bee2da 100644 --- a/src/other/deviceitem.cpp +++ b/src/other/deviceitem.cpp @@ -286,6 +286,8 @@ void DeviceItem::updateScreenOrientation() void DeviceItem::initiateRotate() { + mDefaultAnimation->stop(); + // set the view to the maximum size int rotationSide = rotationSideLength() * scale(); setPos(rotationSide/2, rotationSide/2); -- cgit v1.2.3