diff --git a/src/decoders/SmartImageDecoder.cpp b/src/decoders/SmartImageDecoder.cpp index ebe0c530..9588efe4 100644 --- a/src/decoders/SmartImageDecoder.cpp +++ b/src/decoders/SmartImageDecoder.cpp @@ -323,7 +323,7 @@ void SmartImageDecoder::run() std::lock_guard g(d->asyncApiMtx); d->promise->start(); - // reference the currently decoded image to prevent it from being deleted while decoding is still ongoing + // reference the currently decoded image to prevent it from being deleted while decoding is still ongoing (#43) auto refImg = d->imageUnsafe(); if (!refImg.isNull()) { diff --git a/src/logic/ANPV.cpp b/src/logic/ANPV.cpp index 5b60510c..d12ab915 100644 --- a/src/logic/ANPV.cpp +++ b/src/logic/ANPV.cpp @@ -177,7 +177,7 @@ struct ANPV::Impl this->dirModel->setRootPath(""); this->dirModel->setFilter(QDir::Dirs | QDir::NoDotAndDotDot); - this->fileModel = new SortedImageModel(nullptr); + this->fileModel = new SortedImageModel(q); connect(qGuiApp, &QGuiApplication::lastWindowClosed, q, [&]() {