We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c8a0e1 commit a96ba3dCopy full SHA for a96ba3d
Source/Processors/FileReader/FileReaderActions.cpp
@@ -48,7 +48,14 @@ bool SelectFile::perform()
48
pathParam->setNextValue (newPath, false);
49
50
// Load the new file
51
- processor->setFile (newPath, false);
+ bool success = processor->setFile (newPath, false);
52
+
53
+ if (!success)
54
+ {
55
+ // If loading the file failed, revert the path parameter to the original path
56
+ pathParam->setNextValue (originalPath, false);
57
+ return false;
58
+ }
59
60
// Set the active stream to the first stream
61
processor->setActiveStream (0, true);
0 commit comments