mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: ffileassoc - empty file types add
This commit is contained in:
parent
294b459799
commit
37ce3e1455
1 changed files with 4 additions and 1 deletions
|
|
@ -165,12 +165,15 @@ end;
|
|||
procedure TfrmFileAssoc.btnAddNewTypeClick(Sender: TObject);
|
||||
var
|
||||
ExtAction : TExtAction;
|
||||
s:string;
|
||||
begin
|
||||
s:=InputBox(Caption, 'Enter name:', ''); // TODO: Localize
|
||||
if s='' then exit;
|
||||
ExtAction := TExtAction.Create;
|
||||
ExtAction.IsChanged := True;
|
||||
with lbFileTypes do
|
||||
begin
|
||||
ExtAction.Name := InputBox(Caption, 'Enter name:', ''); // TODO: Localize
|
||||
ExtAction.Name :=s;
|
||||
Items.AddObject(ExtAction.Name, ExtAction);
|
||||
// add file type to TExts object
|
||||
Exts.AddItem(ExtAction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue