Commit d82908457b632a41810071843daba4b8bd313e49

Authored by Austin Blanton
1 parent 3e6cf825

Add global path when looking for vbb

Showing 1 changed file with 1 additions and 1 deletions
openbr/plugins/gallery.cpp
@@ -985,7 +985,7 @@ class vbbGallery : public Gallery @@ -985,7 +985,7 @@ class vbbGallery : public Gallery
985 void init() 985 void init()
986 { 986 {
987 MatlabIO matio; 987 MatlabIO matio;
988 - QString filename = file.name; 988 + QString filename = (Globals->path.isEmpty() ? "" : Globals->path + "/") + file.name;
989 bool ok = matio.open(filename.toStdString(), "r"); 989 bool ok = matio.open(filename.toStdString(), "r");
990 if (!ok) qFatal("Couldn't open the vbb file"); 990 if (!ok) qFatal("Couldn't open the vbb file");
991 991