diff --git a/src/player.cpp b/src/player.cpp index 8ea02e6144b48104a6bf7e290b8f082dfde945f9..9453f3dab134fa7f93cdefa3557745dbd797ed09 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -33,7 +33,6 @@ #include <QStyle> #include <QToolButton> #include <QVBoxLayout> -#include <QtConcurrent> Player::Player(Animation *anim, QWidget *parent) : QWidget(parent) { @@ -250,8 +249,7 @@ bool Player::updateImage() } qApp->processEvents(); - QFuture<void> future = QtConcurrent::run([&]() { mMainWindow->updateImage(mImg); }); - future.waitForFinished(); + mMainWindow->updateImage(mImg); if(mRec) {