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

Add FileChooser back to SourceNode

parent 6480b2f5
Branches
Tags
No related merge requests found
......@@ -57,18 +57,18 @@ SourceNode::SourceNode(const String& name_)
File::getSpecialLocation (File::userHomeDirectory),
"*");
// if (chooseFileReaderFile.browseForFileToOpen())
// {
// // Use the selected file
// File fileToRead (chooseFileReaderFile.getResult());
// String fileName(fileToRead.getFullPathName());
// dataThread = new FileReaderThread(this, fileName.getCharPointer());
// } else {
// // If cancelled, assume it's in the executable directory
// dataThread = new FileReaderThread(this, "./data_stream_16ch_2");
// }
dataThread = new FileReaderThread(this, "./data_stream_16ch_2");
if (chooseFileReaderFile.browseForFileToOpen())
{
// Use the selected file
File fileToRead (chooseFileReaderFile.getResult());
String fileName(fileToRead.getFullPathName());
dataThread = new FileReaderThread(this, fileName.getCharPointer());
} else {
// If cancelled, assume it's in the executable directory
dataThread = new FileReaderThread(this, "./data_stream_16ch_2");
}
//dataThread = new FileReaderThread(this, "./data_stream_16ch_2");
//sendActionMessage("File loaded.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment