mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user