Skip to content

Commit

Permalink
tfbdataprocess, close db on createdatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
riderkick committed Dec 29, 2015
1 parent d60f979 commit 74ce180
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions baseunits/uData.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1177,10 +1177,9 @@ procedure TDBDataProcess.CreateDatabase(AWebsite: String);
var
filepath: String;
begin
if AWebsite <> '' then
FWebsite := AWebsite;
if FWebsite = '' then
Exit;
if AWebsite <> '' then FWebsite := AWebsite;
if FWebsite = '' then Exit;
Close;
filepath := fmdDirectory + DATA_FOLDER + FWebsite + DBDATA_EXT;
if FileExistsUTF8(filepath) then
DeleteFileUTF8(filepath);
Expand Down

0 comments on commit 74ce180

Please sign in to comment.