mirror of https://gitlab.com/basile.b/dexed.git
fix, linux version, close editor from tab close btn, the matching editor was not closed if the tab not active
This commit is contained in:
parent
458839102d
commit
7eeae18d32
|
@ -260,6 +260,7 @@ end;
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
procedure TCEEditorWidget.pageCloseBtnClick(Sender: TObject);
|
procedure TCEEditorWidget.pageCloseBtnClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
|
PageControl.PageIndex := TTabSheet(sender).PageIndex;
|
||||||
if fDoc <> nil then fDoc.Free;
|
if fDoc <> nil then fDoc.Free;
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
Loading…
Reference in New Issue