Commit d82908457b632a41810071843daba4b8bd313e49
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 | 985 | void init() |
| 986 | 986 | { |
| 987 | 987 | MatlabIO matio; |
| 988 | - QString filename = file.name; | |
| 988 | + QString filename = (Globals->path.isEmpty() ? "" : Globals->path + "/") + file.name; | |
| 989 | 989 | bool ok = matio.open(filename.toStdString(), "r"); |
| 990 | 990 | if (!ok) qFatal("Couldn't open the vbb file"); |
| 991 | 991 | ... | ... |