summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/gui_iniutils.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui_iniutils.pas b/src/gui/gui_iniutils.pas
index 34e85ba3..dd4087f1 100644
--- a/src/gui/gui_iniutils.pas
+++ b/src/gui/gui_iniutils.pas
@@ -79,7 +79,8 @@ begin
if lDir = '' then
lDir := GetAppConfigDir(False);
- lDir := lDir + PathDelim;
+ if not (lDir[Length(lDir)] = PathDelim) then
+ lDir := lDir + PathDelim;
{ We used a non-Global config dir, so should be able to create the dir }
if not ForceDirectories(lDir) then