diff options
-rw-r--r-- | lbu-config-html.lsp | 1 | ||||
-rw-r--r-- | lbu-model.lua | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp index 9d9f872..0f2abe2 100644 --- a/lbu-config-html.lsp +++ b/lbu-config-html.lsp @@ -16,6 +16,7 @@ <dl> <dt <? if (view.errors) and (view.errors.LBU_MEDIA) then io.write("class='error'") end ?>>Default media for commit</dt> <dd><select name="LBU_MEDIA" size="1"> + <? if (view.config.LBU_MEDIA == nil) then io.write("<option value='' selected='selected'>No default</option>") end ?> <? for i=1, table.maxn(view.config.LBU_MEDIA_LIST) do ?> <option value="<?= view.config.LBU_MEDIA_LIST[i]["value"] ?>" <? if (string.lower(view.config.LBU_MEDIA_LIST[i]["value"]) == string.lower(view.config.LBU_MEDIA or "")) then io.write("selected='selected'") end?>> diff --git a/lbu-model.lua b/lbu-model.lua index 3b804ee..e8ac94a 100644 --- a/lbu-model.lua +++ b/lbu-model.lua @@ -142,7 +142,6 @@ function getconfig () local path = configfile local config = {} local lbumedias = {} - table.insert(lbumedias, {name="No default", value=""}) table.insert(lbumedias, {name="floppy", value="floppy"}) table.insert(lbumedias, {name="usb", value="usb"}) config = getopts.getoptsfromfile(path) |