Remove some unprotected usage of QList::at

This commit is contained in:
GriffinR
2025-08-06 13:44:29 -04:00
parent a5823f04f1
commit bc9fbe6e72
14 changed files with 49 additions and 48 deletions

View File

@@ -41,7 +41,7 @@ Scripting::Scripting(MainWindow *mainWindow) {
const QStringList paths = userConfig.getCustomScriptPaths();
const QList<bool> enabled = userConfig.getCustomScriptsEnabled();
for (int i = 0; i < paths.length(); i++) {
if (enabled.at(i))
if (enabled.value(i, true))
this->filepaths.append(paths.at(i));
}
this->loadModules(this->filepaths);