Skip to content
Snippets Groups Projects
Commit f6a6a9be authored by jsiegle's avatar jsiegle
Browse files

Add check for recording location in SpikePlot

parent 2084b4da
No related branches found
No related tags found
No related merge requests found
......@@ -533,6 +533,12 @@ void SpikePlot::openFile()
dataDirectory = recordNode->getDataDirectory();//File("/Users/Josh/Programming/open-ephys/GUI/Builds/MacOSX/build/Debug"); //recordNode->getDataDirectory();
if (dataDirectory.getFullPathName().length() == 0)
{
// temporary fix in case nothing is returned by the record node.
dataDirectory = File::getSpecialLocation(File::userHomeDirectory);
}
filename = dataDirectory.getFullPathName();
filename += File::separator;
filename += name.removeCharacters(" ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment