mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Small fixes for bug [2902004]
This commit is contained in:
parent
e2bd37a131
commit
4e80369d8b
2 changed files with 1372 additions and 1370 deletions
|
|
@ -242,16 +242,17 @@ end;
|
|||
procedure TfrmFileAssoc.btnAddNewTypeClick(Sender: TObject);
|
||||
var
|
||||
ExtAction : TExtAction;
|
||||
s:string;
|
||||
s: string;
|
||||
begin
|
||||
s:=InputBox(Caption, rsMsgEnterName, '');
|
||||
s:= InputBox(Caption, rsMsgEnterName, '');
|
||||
if s='' then exit;
|
||||
ExtAction := TExtAction.Create;
|
||||
ExtAction.IconIndex:= -1;
|
||||
ExtAction.IsChanged := True;
|
||||
with lbFileTypes do
|
||||
begin
|
||||
ExtAction.Name :=s;
|
||||
Items.AddObject(ExtAction.Name, ExtAction);
|
||||
ExtAction.Name := s;
|
||||
Items.AddObject(ExtAction.Name, nil);
|
||||
// add file type to TExts object
|
||||
Exts.AddItem(ExtAction);
|
||||
ItemIndex := Items.Count - 1;
|
||||
|
|
@ -490,7 +491,7 @@ begin
|
|||
FreeIcon(ItemIndex);
|
||||
Exts.Items[ItemIndex].Icon:= '';
|
||||
// and set IconIndex
|
||||
Exts.Items[ItemIndex].IconIndex:= 0;
|
||||
Exts.Items[ItemIndex].IconIndex:= -1;
|
||||
Exts.Items[ItemIndex].IsChanged:= True;
|
||||
Repaint;
|
||||
end;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue