diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-06-18 22:30:08 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-06-18 22:30:08 +0200 |
| commit | e7a55631dfa3e4011e420dbd22891d4adf98aa7d (patch) | |
| tree | f87f517df24b0267dcda78e8cade9e574b8f03f3 /UConfig.pas | |
| parent | fd60abd18e718c2134b350308c8d4dbf0d95dcc0 (diff) | |
| download | tuxcmd-e7a55631dfa3e4011e420dbd22891d4adf98aa7d.tar.xz | |
Handle multiple file extensions
Resolves #1120769
Diffstat (limited to 'UConfig.pas')
| -rw-r--r-- | UConfig.pas | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/UConfig.pas b/UConfig.pas index 034fd11..9642930 100644 --- a/UConfig.pas +++ b/UConfig.pas @@ -607,8 +607,8 @@ begin Item := TFileAssoc.Create; with Item do begin if (Sections[i] = ConstFTAMetaDirectory) or (Sections[i] = ConstFTAMetaFile) - then Extensions := '' - else Extensions := Sections[i]; + then SetLength(Extensions, 0) + else ParseString(Sections[i], ';', Extensions); FileTypeName := IniFile.ReadString(Sections[i], 'FileTypeName', ''); DefaultAction := IniFile.ReadInteger(Sections[i], 'DefaultAction', 0); cnt := IniFile.ReadInteger(Sections[i], 'NumActions', 0); @@ -661,7 +661,7 @@ begin with TFileAssoc(AssocList[i]) do begin if (FileTypeName = ConstFTAMetaDirectory) or (FileTypeName = ConstFTAMetaFile) then SectionTitle := FileTypeName - else SectionTitle := Extensions; + else SectionTitle := MakeString(';', Extensions); IniFile.EraseSection(SectionTitle); IniFile.WriteString(SectionTitle, 'FileTypeName', FileTypeName); IniFile.WriteString(SectionTitle, 'FileTypeIcon', FileTypeIcon); |
