mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-20 10:23:19 +02:00
* Fix bug #33236: Give feedback when connection test succeeds
git-svn-id: trunk@57385 -
This commit is contained in:
parent
d82cc85d1d
commit
f4922224e6
@ -167,7 +167,9 @@ Var
|
||||
begin
|
||||
S:=TFPReportConnector.TestConnection(FConnectionData);
|
||||
if (S<>'') then
|
||||
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0);
|
||||
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0)
|
||||
else
|
||||
MessageDlg(SSuccess,SConnectionSuccesful,mtInfo,[mbOK],0)
|
||||
end;
|
||||
|
||||
constructor TSQLReportDataConfigFrame.Create(AOwner: TComponent);
|
||||
|
@ -61,8 +61,10 @@ var
|
||||
ReportConnectionEditorForm: TReportConnectionEditorForm;
|
||||
|
||||
Resourcestring
|
||||
SConnectionSuccesful = 'Connection was succesfully made';
|
||||
SConnectionSuccesful = 'Connection to the database was succesfully made.';
|
||||
SErrConnectionNotOK = 'Error connecting to the database';
|
||||
SSucces = 'Succesfully connected.';
|
||||
|
||||
|
||||
implementation
|
||||
|
||||
@ -110,8 +112,9 @@ begin
|
||||
FormToParams;
|
||||
S:=TFPReportConnector.TestConnection(FParams);
|
||||
if (S<>'') then
|
||||
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0);
|
||||
|
||||
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0)
|
||||
else
|
||||
MessageDlg(SSucces,SConnectionSuccesful,mtInfo,[mbOK],0);
|
||||
end;
|
||||
|
||||
procedure TReportConnectionEditorForm.Setparams(AValue: TJSONObject);
|
||||
|
Loading…
Reference in New Issue
Block a user