summaryrefslogtreecommitdiff
path: root/UConfig.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-18 22:30:08 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-18 22:30:08 +0200
commite7a55631dfa3e4011e420dbd22891d4adf98aa7d (patch)
treef87f517df24b0267dcda78e8cade9e574b8f03f3 /UConfig.pas
parentfd60abd18e718c2134b350308c8d4dbf0d95dcc0 (diff)
downloadtuxcmd-e7a55631dfa3e4011e420dbd22891d4adf98aa7d.tar.xz
Handle multiple file extensions
Resolves #1120769
Diffstat (limited to 'UConfig.pas')
-rw-r--r--UConfig.pas6
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);