viewerglwidget: don't check for file exists since OIIO will do that for us

This commit is contained in:
itsmattkc
2020-02-23 13:48:02 +11:00
parent c2d518c681
commit 3a90e76fec
+2 -2
View File
@@ -78,7 +78,7 @@ void ViewerGLWidget::SetImage(const QString &fn)
{
has_image_ = false;
if (!fn.isEmpty() && QFile::exists(fn)) {
if (!fn.isEmpty()) {
auto input = OIIO::ImageInput::open(fn.toStdString());
if (input) {
@@ -113,7 +113,7 @@ void ViewerGLWidget::SetImage(const QString &fn)
has_image_ = true;
#if OIIO_VERSION < 10903
OIIO::ImageInput::destroy(input);
OIIO::ImageInput::destroy(input);
#endif
} else {