You've already forked lazarus-ccr
tvplanit: Fix BufDSDatastore to create DB directory if AutoCreate is true.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4802 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -27,10 +27,6 @@ msgstr "Turbo Power VisualPlanIt Demo"
|
||||
msgid "Language"
|
||||
msgstr "Sprache"
|
||||
|
||||
#: tmainform.label2.caption
|
||||
msgid "Number of days"
|
||||
msgstr ""
|
||||
|
||||
#: tmainform.rballtasks.caption
|
||||
msgid "All tasks"
|
||||
msgstr "Alle Aufgaben"
|
||||
|
@ -17,10 +17,6 @@ msgstr ""
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
#: tmainform.label2.caption
|
||||
msgid "Number of days"
|
||||
msgstr ""
|
||||
|
||||
#: tmainform.rballtasks.caption
|
||||
msgid "All tasks"
|
||||
msgstr ""
|
||||
|
@ -99,7 +99,12 @@ begin
|
||||
dir := IncludeTrailingPathDelimiter(FDirectory);
|
||||
dir := ExpandFileName(dir);
|
||||
if not DirectoryExistsUTF8(dir) then
|
||||
raise Exception.CreateFmt('Directory "%s" for tables does not exist.', [dir]);
|
||||
begin
|
||||
if AutoCreate then
|
||||
CreateDir(dir)
|
||||
else
|
||||
raise Exception.CreateFmt('Directory "%s" for tables does not exist.', [dir]);
|
||||
end;
|
||||
|
||||
if ATableName = ResourceTableName then
|
||||
table := FResourceTable
|
||||
|
Reference in New Issue
Block a user