mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-27 19:42:22 -05:00
Simba: Fix tab closing using 'x' on the tab.
This commit is contained in:
parent
7b771b1600
commit
46cc511b56
@ -1622,7 +1622,7 @@ end;
|
|||||||
procedure TSimbaForm.ActionCloseTabExecute(Sender: TObject);
|
procedure TSimbaForm.ActionCloseTabExecute(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
if(PageControl1.PageCount > 1)then
|
if(PageControl1.PageCount > 1)then
|
||||||
Self.DeleteTab(PageControl1.TabIndex,false)
|
Self.DeleteTab(TTabSheet(Sender).TabIndex,false)
|
||||||
else
|
else
|
||||||
Self.ClearScript; //DeleteTab would take care of this already, but yeah, it's neater this way.
|
Self.ClearScript; //DeleteTab would take care of this already, but yeah, it's neater this way.
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user