Skip to content

Commit

Permalink
Issue #946: fix overtaken filename after click cancel on file-open di…
Browse files Browse the repository at this point in the history
…alog
  • Loading branch information
ansgarbecker committed Mar 22, 2020
1 parent 83108d2 commit 20d1758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/connections.pas
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@ procedure Tconnform.FindAddDatabaseFilesClick(Sender: TObject);
PickFile(editHost); PickFile(editHost);
if (Sender = menuAddDatabaseFiles) if (Sender = menuAddDatabaseFiles)
and (not PrevText.IsEmpty) and (not PrevText.IsEmpty)
and (editHost.Text <> PrevText)
and (editHost.Text <> '') then begin and (editHost.Text <> '') then begin
editHost.Text := PrevText + DELIM + editHost.Text; editHost.Text := PrevText + DELIM + editHost.Text;
end; end;
Expand Down

0 comments on commit 20d1758

Please sign in to comment.