Skip to content

Commit

Permalink
load controller XML and JS module files from subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jun 15, 2020
1 parent 020bd0d commit ce22c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/controllerpresetfilehandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void ControllerPresetFileHandler::addScriptFilesToPreset(
}

QString moduleFileName = controller.firstChildElement("module").text();
preset->setModuleFileInfo(findScriptFile(preset, moduleFileName, systemPresetsPath));
preset->setModuleFileInfo(preset->dirPath().absoluteFilePath(moduleFileName));
}

bool ControllerPresetFileHandler::writeDocument(
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/controllerpresetinfoenumerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void PresetInfoEnumerator::loadSupportedPresets() {
m_bulkPresets.clear();

for (const QString& dirPath : m_controllerDirPaths) {
QDirIterator it(dirPath);
QDirIterator it(dirPath, QDirIterator::Subdirectories);
while (it.hasNext()) {
it.next();
const QString path = it.filePath();
Expand Down

0 comments on commit ce22c15

Please sign in to comment.