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:
parent
7b771b1600
commit
46cc511b56
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user