From 7eeae18d3281e7f90cb4028b45d78ed58c8b9637 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 6 Nov 2015 23:46:42 +0100 Subject: [PATCH] fix, linux version, close editor from tab close btn, the matching editor was not closed if the tab not active --- src/ce_editor.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ce_editor.pas b/src/ce_editor.pas index 69c898cb..8bf927ca 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -260,6 +260,7 @@ end; {$IFDEF LINUX} procedure TCEEditorWidget.pageCloseBtnClick(Sender: TObject); begin + PageControl.PageIndex := TTabSheet(sender).PageIndex; if fDoc <> nil then fDoc.Free; end; {$ENDIF}