SrcEdit: Fix close button on tab. issue #0018038

git-svn-id: trunk@28466 -
This commit is contained in:
martin 2010-11-24 19:53:40 +00:00
parent 04fe47ca23
commit 60b51646df

View File

@ -6529,10 +6529,8 @@ procedure TSourceNotebook.CloseTabClicked(Sender: TObject);
var
TabIndex: Integer;
begin
TabIndex:=FNotebook.TabIndex;
if TabIndex>=0 then
CloseClicked(NoteBookPage[TabIndex],
(GetKeyState(VK_CONTROL) < 0) and EditorOpts.CtrlMiddleTabClickClosesOthers);
CloseClicked(Sender,
(GetKeyState(VK_CONTROL) < 0) and EditorOpts.CtrlMiddleTabClickClosesOthers);
end;
function TSourceNotebook.GetEditors(Index:integer):TSourceEditor;