mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:29:28 +02:00
SrcEdit: Fix close button on tab. issue #0018038
git-svn-id: trunk@28466 -
This commit is contained in:
parent
04fe47ca23
commit
60b51646df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user