mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: crash after copying columns in options form
This commit is contained in:
parent
67a34ce688
commit
c6a9058ed8
1 changed files with 5 additions and 3 deletions
|
|
@ -696,7 +696,7 @@ begin
|
|||
x:=fSet.IndexOf(SetName);
|
||||
if x<>-1 then
|
||||
begin
|
||||
{ try
|
||||
try
|
||||
st:=TStringList.Create;
|
||||
ini.ReadSectionValues(SetName,st);
|
||||
for i:=0 to st.Count-1 do
|
||||
|
|
@ -705,8 +705,10 @@ begin
|
|||
end;
|
||||
finally
|
||||
st.Free;
|
||||
end;}
|
||||
fSet.AddObject(NewSetName,fset.Objects[x]);
|
||||
end;
|
||||
fSet.AddObject(NewSetName,TPanelColumnsClass.Create);
|
||||
TPanelColumnsClass(fset.Objects[fset.Count-1]).Name:=NewSetName;
|
||||
TPanelColumnsClass(fset.Objects[fset.Count-1]).Load(ini,NewSetName);
|
||||
end;
|
||||
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue