Do not attempt open not existing file

This commit is contained in:
2025-01-19 15:11:32 +01:00
parent 58d18cc28a
commit 3cda53f26c
+3
View File
@@ -175,6 +175,8 @@ bool ImageRingList::setDir(const QString path, const QString &currentFile, bool
}
void ImageRingList::setFile(const QString &file)
{
if(!file.isEmpty())
{
QFileInfo info(file);
if(info.isDir())
@@ -182,6 +184,7 @@ void ImageRingList::setFile(const QString &file)
else
setDir(info.absolutePath(), file);
}
}
ImagePtr ImageRingList::currentImage()
{