diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 4e00c47..fbc4950 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -985,7 +985,7 @@ class vbbGallery : public Gallery void init() { MatlabIO matio; - QString filename = file.name; + QString filename = (Globals->path.isEmpty() ? "" : Globals->path + "/") + file.name; bool ok = matio.open(filename.toStdString(), "r"); if (!ok) qFatal("Couldn't open the vbb file");