mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 12:19:13 +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;
|
end;
|
||||||
|
|
||||||
procedure TCocoaTabControl.exttabRemoveTabViewItem(lTabPage: NSTabViewItem);
|
procedure TCocoaTabControl.exttabRemoveTabViewItem(lTabPage: NSTabViewItem);
|
||||||
|
var
|
||||||
|
idx : NSInteger;
|
||||||
begin
|
begin
|
||||||
removeTabViewItem(lTabPage);
|
idx := indexOfTabViewItem(lTabPage);
|
||||||
|
if (idx>=0) and (idx<>NSNotFound) then
|
||||||
|
removeTabViewItem(lTabPage);
|
||||||
|
|
||||||
fulltabs.removeObject(lTabPage);
|
fulltabs.removeObject(lTabPage);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user