Revert "Thread ping pong"

This commit is contained in:
Luis Ángel San Martín
2019-09-24 12:00:21 +02:00
committed by GitHub
parent b906bf964f
commit 0b83764734
4 changed files with 35 additions and 70 deletions

View File

@ -381,8 +381,8 @@ Render::Render()
Render::~Render()
{
if (comic != 0) {
//comic->moveToThread(QApplication::instance()->thread());
if (comic != nullptr) {
comic->moveToThread(QApplication::instance()->thread());
comic->deleteLater();
}
@ -607,8 +607,8 @@ void Render::setRotation(int degrees)
void Render::setComic(Comic *c)
{
if (comic != 0) {
//comic->moveToThread(QApplication::instance()->thread());
if (comic != nullptr) {
comic->moveToThread(QApplication::instance()->thread());
comic->disconnect();
comic->deleteLater();
}