From d82908457b632a41810071843daba4b8bd313e49 Mon Sep 17 00:00:00 2001 From: Austin Blanton Date: Wed, 26 Feb 2014 17:49:31 -0500 Subject: [PATCH] Add global path when looking for vbb --- openbr/plugins/gallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- libgit2 0.21.4