Fix bug #876 : Incorrect database name ''

This commit is contained in:
Ansgar Becker
2008-11-23 11:25:53 +00:00
parent 7f69da2051
commit 9ba3b630f5

View File

@ -165,7 +165,7 @@ begin
// If a table is selected, use that for preselection. If only a db was selected, use all tables inside it.
if Mainform.ChildWin.SelectedTable <> '' then
SelectedTables.Add(Mainform.ChildWin.SelectedTable)
else begin
else if Mainform.ChildWin.ActiveDatabase <> '' then begin
ds := Mainform.ChildWin.FetchDbTableList(Mainform.ChildWin.ActiveDatabase);
while not ds.Eof do begin
SelectedTables.Add(ds.Fields[0].AsWideString);