mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Revert "Thread ping pong"
This commit is contained in:
committed by
GitHub
parent
b906bf964f
commit
0b83764734
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user