From ec31a25e966c8b53c7cc6390e24692c46faa3f9a Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 5 Feb 2020 17:35:24 +0100 Subject: [PATCH] Minor performance fix --- source/connections.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/connections.pas b/source/connections.pas index 89bd9354..3030ee44 100644 --- a/source/connections.pas +++ b/source/connections.pas @@ -366,8 +366,8 @@ begin // Connect to selected session Params := CurrentParams; - if (CurrentParams.NetType = ntSQLite) - and (not FileExists(CurrentParams.Hostname)) + if (Params.NetType = ntSQLite) + and (not FileExists(Params.Hostname)) then begin Msg := f_('Database file "%s" does not exist. Shall it be created now?', [Params.Hostname]); DoCreateDb := MessageDialog(Msg, mtConfirmation, [mbNo, mbYes]);