aboutsummaryrefslogtreecommitdiff
path: root/src/aolayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aolayer.cpp')
-rw-r--r--src/aolayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index 25873fee..99524947 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -529,8 +529,8 @@ void CharLayer::movie_ticker()
void AOLayer::movie_ticker()
{
++frame;
- QFuture<void> future;
if (frame >= movie_frames.size() && frame < max_frames) { // need to load the image
+ future.waitForFinished(); // Do Not want this to be running twice
future = QtConcurrent::run(this, &AOLayer::load_next_frame);
}
else if (frame >= max_frames) {