Do not open a new tab for a dropped file, at least if it's the only one or first one of multiple files. Fixes issue #1764.

This commit is contained in:
Ansgar Becker
2010-03-13 14:03:13 +00:00
parent 532713e51a
commit bd762fe439

View File

@ -4762,6 +4762,7 @@ begin
// query-memo - load their contents into seperate tabs // query-memo - load their contents into seperate tabs
for i:=0 to AFiles.Count-1 do begin for i:=0 to AFiles.Count-1 do begin
if fileExists(AFiles[i]) then begin if fileExists(AFiles[i]) then begin
if i > 0 then
actNewQueryTab.Execute; actNewQueryTab.Execute;
QueryLoad(AFiles[i], false); QueryLoad(AFiles[i], false);
end; end;