1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-24 02:02:17 -05:00

Simba: Fix tab closing using 'x' on the tab.

This commit is contained in:
Merlijn Wajer 2011-02-23 12:25:59 +01:00
parent 7b771b1600
commit 46cc511b56

View File

@ -1622,7 +1622,7 @@ end;
procedure TSimbaForm.ActionCloseTabExecute(Sender: TObject);
begin
if(PageControl1.PageCount > 1)then
Self.DeleteTab(PageControl1.TabIndex,false)
Self.DeleteTab(TTabSheet(Sender).TabIndex,false)
else
Self.ClearScript; //DeleteTab would take care of this already, but yeah, it's neater this way.
end;