summary refs log tree commit diff
path: root/src/ui/MxcAnimatedImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/MxcAnimatedImage.cpp')
-rw-r--r--src/ui/MxcAnimatedImage.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/MxcAnimatedImage.cpp b/src/ui/MxcAnimatedImage.cpp
index cfc03827..3c93cc2b 100644
--- a/src/ui/MxcAnimatedImage.cpp
+++ b/src/ui/MxcAnimatedImage.cpp
@@ -94,8 +94,12 @@ MxcAnimatedImage::startDownload()
                                           buffer.isOpen());
                         movie.setFormat(mimeType);
                         movie.setDevice(&buffer);
-                        movie.start();
+                        if (play_)
+                                movie.start();
+                        else
+                                movie.jumpToFrame(0);
                         emit loadedChanged();
+                        update();
                 });
         };
 
@@ -143,6 +147,9 @@ MxcAnimatedImage::startDownload()
 QSGNode *
 MxcAnimatedImage::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *)
 {
+        if (!imageDirty)
+                return oldNode;
+
         imageDirty      = false;
         QSGImageNode *n = static_cast<QSGImageNode *>(oldNode);
         if (!n)