mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 10:39:20 +02:00
cocoa: checking the presence of tabview before removing it
git-svn-id: trunk@61070 -
This commit is contained in:
parent
ee04fcba3b
commit
4c2e6c3028
@ -599,8 +599,12 @@ begin
|
||||
end;
|
||||
|
||||
procedure TCocoaTabControl.exttabRemoveTabViewItem(lTabPage: NSTabViewItem);
|
||||
var
|
||||
idx : NSInteger;
|
||||
begin
|
||||
removeTabViewItem(lTabPage);
|
||||
idx := indexOfTabViewItem(lTabPage);
|
||||
if (idx>=0) and (idx<>NSNotFound) then
|
||||
removeTabViewItem(lTabPage);
|
||||
|
||||
fulltabs.removeObject(lTabPage);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user