Ignore:
Timestamp:
Mar 23, 2011, 12:22:26 PM (14 years ago)
Author:
george
Message:
  • Fixed: Parent manager tabs switching.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDCommon.pas

    r217 r218  
    7979implementation
    8080
     81var
     82  UniqueNameCounter: Integer;
     83
    8184function GetUniqueName(BaseName: string): string;
    82 var
    83   I: Integer;
    84 begin
    85   I := 1;
    86   while Assigned(FindGlobalComponent(BaseName + IntToStr(I))) do Inc(I);
    87   Result := BaseName + IntToStr(I);
     85begin
     86  Result := BaseName + IntToStr(UniqueNameCounter);
     87  Inc(UniqueNameCounter);
    8888end;
    8989
     
    211211end;
    212212
     213initialization
     214
     215UniqueNameCounter := 1;
     216
    213217end.
    214218
Note: See TracChangeset for help on using the changeset viewer.