Ignore empty script paths
This commit is contained in:
parent
885695e705
commit
7411ddaeef
1 changed files with 5 additions and 2 deletions
|
@ -214,8 +214,11 @@ void CustomScriptsEditor::save() {
|
|||
QList<bool> enabledStates;
|
||||
for (int i = 0; i < ui->list->count(); i++) {
|
||||
auto item = ui->list->item(i);
|
||||
paths.append(this->getScriptFilepath(item, false));
|
||||
enabledStates.append(this->getScriptEnabled(item));
|
||||
const QString path = this->getScriptFilepath(item, false);
|
||||
if (!path.isEmpty()) {
|
||||
paths.append(path);
|
||||
enabledStates.append(this->getScriptEnabled(item));
|
||||
}
|
||||
}
|
||||
|
||||
userConfig.setCustomScripts(paths, enabledStates);
|
||||
|
|
Loading…
Reference in a new issue