diff --git a/openbr/gui/imageviewer.cpp b/openbr/gui/imageviewer.cpp index a0dbe54..5512c78 100644 --- a/openbr/gui/imageviewer.cpp +++ b/openbr/gui/imageviewer.cpp @@ -36,7 +36,8 @@ void br::ImageViewer::setDefaultText(const QString &text) void br::ImageViewer::setImage(const QString &file, bool async) { - src = QImage(file); + if(file.isNull()) src = QImage(); // Gets rid of runtime FileEngine::open warning + else src = QImage(file); updatePixmap(async); } diff --git a/openbr/plugins/quality.cpp b/openbr/plugins/quality.cpp index 90150bf..b204229 100644 --- a/openbr/plugins/quality.cpp +++ b/openbr/plugins/quality.cpp @@ -269,6 +269,8 @@ class HeatMapDistance : public Distance (void) target; (void) query; qFatal("You did this wrong"); + + return 0; } // Switch this to template list version, use compare(template, template) in